Skip to content

Instantly share code, notes, and snippets.

@jeroenr
Last active July 19, 2017 19:40
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 jeroenr/bb8686a155ee31e44818032fb963b5a2 to your computer and use it in GitHub Desktop.
Save jeroenr/bb8686a155ee31e44818032fb963b5a2 to your computer and use it in GitHub Desktop.
Authentication service deployment descriptor
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: auth-service
spec:
template:
metadata:
labels:
app: auth-service
name: auth-service
spec:
containers:
- args:
- -Xmx1g
- -Djava.security.egd=file:/dev/./urandom
env:
- name: AUTH_SECRET // shared auth secret needed to encode JWT
valueFrom:
secretKeyRef:
key: secret
name: auth-secret
- name: AUTH_BIND_PORT
value: "8080"
- name: MONGO_DEFAULT_URI
value: mongodb://mongo-svc:27017
image: eu.gcr.io/my-docker-repo/auth-service
imagePullPolicy: Always
name: auth-service
ports:
- containerPort: 8080
protocol: TCP
imagePullSecrets:
- name: my-docker-repo
restartPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment