Skip to content

Commit

Permalink
parametrize deployment name
Browse files Browse the repository at this point in the history
  • Loading branch information
jfchevrette authored Feb 17, 2020
1 parent 1eabd02 commit 282556d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions openshift/aws-resource-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ objects:
kind: Deployment
metadata:
labels:
app: aws-resource-exporter
name: aws-resource-exporter
app: ${NAME}
name: ${NAME}
spec:
replicas: ${{REPLICAS}}
selector:
matchLabels:
app: aws-resource-exporter
app: ${NAME}
template:
metadata:
labels:
app: aws-resource-exporter
app: ${NAME}
spec:
containers:
- name: aws-resource-exporter
Expand Down Expand Up @@ -50,18 +50,20 @@ objects:
kind: Service
metadata:
labels:
app: aws-resource-exporter
name: aws-resource-exporter
app: ${NAME}
name: ${NAME}
spec:
selector:
app: aws-resource-exporter
app: ${NAME}
ports:
- name: http
protocol: TCP
port: 9115
targetPort: 9115
type: ClusterIP
parameters:
- name: NAME
value: aws-resource-exporter
- name: IMAGE
value: quay.io/app-sre/aws-resource-exporter
- name: IMAGE_TAG
Expand Down

0 comments on commit 282556d

Please sign in to comment.