-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdb-service.yaml
64 lines (64 loc) · 1.29 KB
/
db-service.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: db-service
name: db-service
namespace: integration
spec:
replicas: 1
selector:
matchLabels:
app: db-service
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: db-service
sidecar.istio.io/inject: "false"
spec:
imagePullSecrets:
- name: registry-secret
containers:
- image: <image-name>
name: db-service
imagePullPolicy: Always
resources: {}
ports:
- containerPort: 8080
volumeMounts:
- name: db-config
mountPath: "/etc/secrets/db-config"
readOnly: true
- name: backend-config
mountPath: "/etc/backend-config"
readOnly: true
volumes:
- name: db-config
secret:
secretName: db-config
- name: backend-config
configMap:
name: backend-configmap
status: {}
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: db-service
name: db-service
namespace: integration
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: db-service
type: ClusterIP
status:
loadBalancer: {}