-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdev-deployment.yml
More file actions
106 lines (106 loc) · 2.42 KB
/
dev-deployment.yml
File metadata and controls
106 lines (106 loc) · 2.42 KB
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
104
105
106
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: dev-plugin-adapter
namespace: cc-backend
spec:
replicas: 1
serviceName: dev-plugin-adapter
selector:
matchLabels:
app: dev-plugin-adapter
template:
metadata:
labels:
app: dev-plugin-adapter
spec:
containers:
- name: dev-plugin-adapter
image: 681930130680.dkr.ecr.us-east-1.amazonaws.com/cloudchainsapp/plugin-adapter:dev
imagePullPolicy: Always
ports:
- containerPort: 5000
env:
- name: NAMESPACE
value: "cc-backend"
readinessProbe:
httpGet:
path: /height
port: 5000
successThreshold: 5
failureThreshold: 1
periodSeconds: 2
timeoutSeconds: 2
livenessProbe:
httpGet:
path: /height
port: 5000
successThreshold: 5
failureThreshold: 1
periodSeconds: 2
timeoutSeconds: 2
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: name
operator: In
values:
- dev-plugin-adapter
topologyKey: "kubernetes.io/hostname"
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: dev-plugin-adapter
namespace: cc-backend
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "https://status.core.cloudchainsinc.com"
spec:
rules:
- host: plugin-api.dev.core.cloudchainsinc.com
http:
paths:
- backend:
serviceName: dev-plugin-adapter
servicePort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: dev-plugin-adapter
namespace: cc-backend
labels:
app: dev-plugin-adapter
spec:
ports:
- protocol: TCP
port: 5000
targetPort: 5000
selector:
app: dev-plugin-adapter
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: services-list
rules:
- apiGroups: [""]
resources: ["services"]
verbs: ["list"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: services-list
subjects:
- kind: ServiceAccount
name: default
namespace: cc-backend
roleRef:
kind: ClusterRole
name: services-list
apiGroup: rbac.authorization.k8s.io