Skip to content

Instantly share code, notes, and snippets.

@chetanku
Created April 30, 2019 04:07
Show Gist options
  • Save chetanku/81e73fe339f67004841fa2d0bacbb86c to your computer and use it in GitHub Desktop.
Save chetanku/81e73fe339f67004841fa2d0bacbb86c to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: client-pod
labels:
app: frontend
spec:
containers:
- name: frontend-env
image: "IMAGE_REGISTRY"/frontend-env
ports:
- containerPort : 8080
envFrom:
- configMapRef:
name: test
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/env_token.js > /usr/share/nginx/html/env.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment