Skip to content

Instantly share code, notes, and snippets.

@Dakuan
Created December 21, 2017 17:01
Show Gist options
  • Save Dakuan/1f95dd4ef7d94701cdad9cdf37088471 to your computer and use it in GitHub Desktop.
Save Dakuan/1f95dd4ef7d94701cdad9cdf37088471 to your computer and use it in GitHub Desktop.
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: auth-svc
name: auth-svc
namespace: default
spec:
replicas: 3
selector:
matchLabels:
run: auth-svc
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: auth-svc
spec:
containers:
- image: auth_svc:v1
imagePullPolicy: IfNotPresent
name: auth-svc
env:
- name: TOKEN
value: letmeinpleasekthxbye
ports:
- containerPort: 8080
name: http-api
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: auth-svc
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Module
name: authentication
config:
auth_service: "auth-svc:3000"
spec:
type: ClusterIP
selector:
run: auth-svc
ports:
- port: 3000
name: auth-svc
targetPort: http-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment