-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.yaml
More file actions
42 lines (41 loc) · 763 Bytes
/
auth.yaml
File metadata and controls
42 lines (41 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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: ghcr.io/chatgut/authservice2:latest
ports:
- containerPort: 8003
env:
- name: DB_USER
value: developer
- name: DB_PASS
value: dev-secret-pw
- name: DB_URL
value: "mysql:3306/auth-DB"
---
apiVersion: v1
kind: Service
metadata:
name: auth-service
spec:
type: LoadBalancer
selector:
app: auth
ports:
- protocol: TCP
port: 8080
targetPort: 8080