forked from asizikov/cluster-guinea-pig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient-service-a-deploy.yaml
45 lines (45 loc) · 1022 Bytes
/
client-service-a-deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: client-service-a
labels:
app: client-service-a
spec:
replicas: 1
selector:
matchLabels:
app: client-service-a
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: client-service-a
spec:
containers:
- name: api
image: ghcr.io/norbinto/client-service-a:1.0
imagePullPolicy: Always
env:
- name: DYNAMIC_CONFIG_STORAGE_CONNECTION_STRING
value: http://dynamic-config-storage-api:80
- name: DYNAMIC_CONFIG_REFRESH_INTERVAL_MS
value: "10000"
- name: DYNAMIC_CONFIG_APPLICATION_NAME
value: SERVICE-A
imagePullSecrets:
- name: dockerconfigjson-github-com
---
apiVersion: v1
kind: Service
metadata:
name: client-service-a-service
spec:
selector:
app: client-service-a
ports:
- protocol: TCP
port: 81