44 lines
814 B
YAML
44 lines
814 B
YAML
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: auth-deployment
|
||
|
|
labels:
|
||
|
|
app: auth
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app: auth
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app: auth
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: auth
|
||
|
|
image: 192.168.1.14:5000/auth:v33
|
||
|
|
imagePullPolicy: IfNotPresent
|
||
|
|
ports:
|
||
|
|
- containerPort: 9000
|
||
|
|
volumeMounts:
|
||
|
|
- name: keys-secret
|
||
|
|
mountPath: keys
|
||
|
|
readOnly: true
|
||
|
|
volumes:
|
||
|
|
- name: keys-secret
|
||
|
|
secret:
|
||
|
|
secretName: app-keys
|
||
|
|
defaultMode: 0600
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: auth-service
|
||
|
|
spec:
|
||
|
|
selector:
|
||
|
|
app: auth
|
||
|
|
ports:
|
||
|
|
- protocol: TCP
|
||
|
|
port: 9000
|
||
|
|
targetPort: 9000
|
||
|
|
type: LoadBalancer
|