Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created May 5, 2023 15:51
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/fbbfecf845f0c6a3f1ddbe76d41fc474 to your computer and use it in GitHub Desktop.
Save marianogg9/fbbfecf845f0c6a3f1ddbe76d41fc474 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
valueFrom:
secretKeyRef:
name: env-vars
key: my_var
- name: SECOND_VAR
valueFrom:
secretKeyRef:
name: env-vars
key: my_other_var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment