Created
November 28, 2017 05:19
-
-
Save martincalvert/90a15d6bc110f2362d759ec8a62a1974 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 | |
env: | |
- name: ENVIRONMENT | |
valueFrom: | |
configMapKeyRef: | |
name: {{ .Values.ruby.app.name }}-nginx-config | |
key: env | |
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