-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
103 lines (103 loc) · 2.88 KB
/
deployment.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
apiVersion: apps/v1
kind: Deployment
metadata:
name: recognizer
namespace: gitlab-managed-apps
labels:
app: recognizer
spec:
replicas: 1
selector:
matchLabels:
app: recognizer
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 33%
template:
metadata:
labels:
app: recognizer
spec:
containers:
- name: recognizer
image: clyde.local:5005/taliesin/micro-recognizer/master:prod
imagePullPolicy: Always
ports:
- containerPort: 8080
volumeMounts:
- mountPath: "/snippets/"
name: file-server
env:
- name: AUTH_API_URL
value: "http://auth-api.gitlab-managed-apps.svc.cluster.local:8080"
- name: MICRO_ENVIRONMENT
value: "production"
- name: DATABASE_API_URL
value: "http://database-api.gitlab-managed-apps.svc.cluster.local:8080"
- name: RECOGNIZER_API_URL
value: "http://raoh.educ.insa:12191"
- name: FILESERVER_URL
value: "https://inky.local:9501"
- name: CLUSTER_INTERNAL_PASSWORD
valueFrom:
secretKeyRef:
name: database-secrets
key: password
volumes:
- name: file-server
persistentVolumeClaim:
claimName: file-server-claim
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: recognizer-dev
namespace: gitlab-managed-apps
labels:
app: recognizer-dev
spec:
replicas: 1
selector:
matchLabels:
app: recognizer-dev
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 33%
template:
metadata:
labels:
app: recognizer-dev
spec:
containers:
- name: recognizer-dev
image: clyde.local:5005/taliesin/micro-recognizer/master:dev
imagePullPolicy: Always
ports:
- containerPort: 8080
volumeMounts:
- mountPath: "/snippets/"
name: file-server-dev
env:
- name: AUTH_API_URL
value: "http://auth-dev-api.gitlab-managed-apps.svc.cluster.local:8080"
- name: MICRO_ENVIRONMENT
value: "dev"
- name: DATABASE_API_URL
value: "http://database-dev-api.gitlab-managed-apps.svc.cluster.local:8080"
- name: RECOGNIZER_API_URL
value: "http://raoh.educ.insa:12191"
- name: FILESERVER_URL
value: "https://inky.local:9502"
- name: CLUSTER_INTERNAL_PASSWORD
valueFrom:
secretKeyRef:
name: database-secrets
key: password
volumes:
- name: file-server-dev
persistentVolumeClaim:
claimName: file-server-dev-claim