Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created May 5, 2023 15:48
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 marianogg9/60498790876f7835e61bd5993f8c7ec9 to your computer and use it in GitHub Desktop.
Save marianogg9/60498790876f7835e61bd5993f8c7ec9 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.name }}
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: {{ .Values.name }}
version: v1
template:
metadata:
labels:
app: {{ .Values.name }}
version: v1
spec:
serviceAccountName: {{ .Values.name }}
containers:
- image: docker.io/kong/httpbin
imagePullPolicy: IfNotPresent
name: {{ .Values.name }}
ports:
- containerPort: 80
env:
- name: FIRST_VAR
value: {{ .Values.my_var }}
- name: SECOND_VAR
value: {{ .Values.my_other_var }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment