-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
117 lines (114 loc) · 2.81 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Rename <nccs-dashboard> with your service name
#
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
name: nccs-dashboard
name: nccs-dashboard
spec:
progressDeadlineSeconds: 2147483647
replicas: 1
selector:
matchLabels:
app: nccs-dashboard
template:
metadata:
creationTimestamp: null
labels:
app: nccs-dashboard
spec:
serviceAccountName: job-spawning-account
containers:
- env:
- name: SERVICE_EXEC
value: API
- name: S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: s3-secret-nccs
key: access_key_id
- name: S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: s3-secret-nccs
key: secret_access_key
- name: BOKEH_RESOURCES
value: cdn
image: correnticscontainers.azurecr.io/nccs:v2.0.0
ports:
- containerPort: 5007
name: http
protocol: TCP
imagePullPolicy: Always
name: nccs-dashboard
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullSecrets:
- name: acr-secret
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
tolerations:
- key: "sku"
operator: "Equal"
value: "d4sv3"
effect: "NoSchedule"
---
#apiVersion: v1
#kind: Secret
#metadata:
# name: s3-secret-nccs
#type: Opaque
#stringData:
# access_key_id: <accesskey>
# secret_access_key: <secretkey>
#
#---
apiVersion: v1
kind: Service
metadata:
name: nccs-dashboard
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 5007
targetPort: http
selector:
app: nccs-dashboard
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-nccs-dashboard
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: ca-issuer
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "5000m"
nginx.org/client-max-body-size: "5000m"
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/add-base-url: "true"
spec:
tls:
- hosts:
- api.correntics.ch
secretName: aks-ingress-tls
rules:
- host: api.correntics.ch
http:
paths:
- path: /nccs-dashboard/?(.*)
pathType: Prefix
backend:
service:
name: nccs-dashboard
port:
number: 5007