Adding k8s configs to auth microservice
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: promiscuity-auth
|
||||
labels:
|
||||
app: promiscuity-auth
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: promiscuity-auth
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: promiscuity-auth
|
||||
spec:
|
||||
containers:
|
||||
- name: promiscuity-auth
|
||||
image: promiscuity-auth:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 5000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: promiscuity-auth
|
||||
labels:
|
||||
app: promiscuity-auth
|
||||
spec:
|
||||
selector:
|
||||
app: promiscuity-auth
|
||||
type: NodePort
|
||||
ports:
|
||||
- name: http
|
||||
port: 80 # cluster port
|
||||
targetPort: 5000 # container port
|
||||
nodePort: 30080 # same external port you've been using
|
||||
Reference in New Issue
Block a user