Created
November 28, 2017 05:22
-
-
Save martincalvert/58562c3da44a4402ab8c8d255602ef72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: {{ .Values.ruby.app.name }}-api | |
labels: | |
chart: {{ .Chart.Name }}-{{ .Chart.Version }} | |
annotations: | |
"helm/created": {{ .Release.Time.Seconds | quote }} | |
spec: | |
replicas: {{ .Values.ruby.app.replicas }} | |
template: | |
metadata: | |
labels: | |
app: {{ .Values.ruby.app.name }} | |
tier: {{ .Values.ruby.app.name }}-api | |
annotations: | |
date: {{ .Release.Time.Seconds | quote }} | |
spec: | |
containers: | |
- name: {{ .Values.ruby.app.name }} | |
image: {{ .Values.ruby.app.image.name }}:{{ .Values.ruby.app.image.tag }} | |
imagePullPolicy: always | |
ports: | |
- containerPort: 3000 | |
volumeMounts: | |
- mountPath: /etc/nginx/nginx.conf | |
subPath: nginx.conf | |
name: {{ .Values.ruby.app.name }}-nginx-config | |
readOnly: true | |
volumes: | |
- name: {{ .Values.ruby.app.name }}-nginx-config | |
configMap: | |
name: {{ .Values.ruby.app.name }}-nginx-config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment