Adding k8s configs to auth microservice
This commit is contained in:
parent
f3154deba6
commit
59e33760ad
28
microservices/Auth/k8s/deployment.yaml
Normal file
28
microservices/Auth/k8s/deployment.yaml
Normal file
@ -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
|
||||||
15
microservices/Auth/k8s/service.yaml
Normal file
15
microservices/Auth/k8s/service.yaml
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user