2018-06-25 19:33:02 +02:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
|
|
|
name: {{ .Values.httpd.name }}
|
|
|
|
labels:
|
|
|
|
app: {{ .Values.httpd.name }}
|
|
|
|
environment: {{ .Values.environment }}
|
|
|
|
spec:
|
2018-06-25 22:53:22 +02:00
|
|
|
replicas: {{ .Values.replicaCount }}
|
|
|
|
strategy:
|
|
|
|
type: {{ .Values.httpd.strategy.type }}
|
2018-06-25 19:33:02 +02:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: {{ .Values.httpd.selector }}
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: {{ .Values.httpd.name }}
|
|
|
|
creationTimestamp: null
|
|
|
|
spec:
|
|
|
|
restartPolicy: {{ .Values.httpd.restartPolicy }}
|
|
|
|
containers:
|
|
|
|
- name: {{ .Values.httpd.name }}
|
|
|
|
image: "{{ .Values.httpd.image.repository }}:{{ .Values.httpd.image.tag }}"
|
|
|
|
imagePullPolicy: {{ .Values.httpd.image.pullPolicy }}
|
|
|
|
env:
|
|
|
|
- name: PROXY_SERVICE
|
2018-06-25 22:53:22 +02:00
|
|
|
value: "{{ .Values.nexus.name }}:{{ .Values.nexus.port.ui }},{{ .Values.nexus.name }}:{{ .Values.nexus.port.docker }}:{{ .Values.nexus.path.dockerV2 }}"
|
2018-06-25 19:33:02 +02:00
|
|
|
- name: SERVER_NAME
|
2018-06-25 22:53:22 +02:00
|
|
|
value: {{ .Values.httpd.hostname }}
|
2018-06-25 19:33:02 +02:00
|
|
|
ports:
|
|
|
|
- containerPort: {{ .Values.httpd.port }}
|
|
|
|
resources: {}
|