Last active
July 19, 2017 19:40
-
-
Save jeroenr/bb8686a155ee31e44818032fb963b5a2 to your computer and use it in GitHub Desktop.
Authentication service deployment descriptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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