Skip to content

Instantly share code, notes, and snippets.

@parisnakitakejser
Created January 15, 2022 15:12
Show Gist options
  • Save parisnakitakejser/ddf7d3baa42612a6a843dd28404d797e to your computer and use it in GitHub Desktop.
Save parisnakitakejser/ddf7d3baa42612a6a843dd28404d797e to your computer and use it in GitHub Desktop.
Use static environment variables in Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: static-env-test
spec:
replicas: 3
template:
spec:
containers:
- name: pods-static-env-test
image: parisnk/flask-test:v1.0.0
env:
- name: SERVICE_NAME
value: "flask-api-test-env"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment