Skip to content

Instantly share code, notes, and snippets.

@martincalvert
Created November 28, 2017 05:19
Show Gist options
  • Save martincalvert/90a15d6bc110f2362d759ec8a62a1974 to your computer and use it in GitHub Desktop.
Save martincalvert/90a15d6bc110f2362d759ec8a62a1974 to your computer and use it in GitHub Desktop.
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