Skip to content

Instantly share code, notes, and snippets.

@karthikeyanVK
Last active September 15, 2020 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karthikeyanVK/a76fa121a57a4e540332e18f7cff7da1 to your computer and use it in GitHub Desktop.
Save karthikeyanVK/a76fa121a57a4e540332e18f7cff7da1 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-orders-deployment
labels:
app: {{ .Values.orders.label.name }}
spec:
replicas: {{ .Values.orders.replicas }}
selector:
matchLabels:
app: {{ .Values.orders.label.name }}
template:
metadata:
labels:
app: {{ .Values.orders.label.name }}
environment: {{ .Values.environment }}
spec:
containers:
- name: {{ .Values.orders.container.name }}
image: {{ .Values.orders.container.image }}:{{ .Values.orders.container.tag }}
imagePullPolicy: {{ .Values.orders.container.pullPolicy }}
ports:
- containerPort: {{ .Values.orders.container.port }}
env:
- name: apphost
value: {{ .Values.apphost }}
- name: appenvironment
value: {{ .Values.environment }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment