-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathcas.yaml
61 lines (61 loc) · 1.25 KB
/
cas.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nativelink-cas
spec:
replicas: 1
selector:
matchLabels:
app: nativelink-cas
template:
metadata:
labels:
app: nativelink-cas
spec:
containers:
- name: nativelink-cas
image: "localhost:5001/nativelink:local"
env:
- name: RUST_LOG
value: info
ports:
- containerPort: 50051
- containerPort: 50061
- containerPort: 50071
volumeMounts:
- name: cas-config
mountPath: /cas.json
subPath: cas.json
- name: tls-volume
mountPath: /root
readOnly: true
args: ["/cas.json"]
volumes:
- name: cas-config
configMap:
name: cas
- name: tls-volume
secret:
secretName: tls-secret
---
apiVersion: v1
kind: Service
metadata:
name: nativelink-cas
spec:
selector:
app: nativelink-cas
ports:
- name: http
protocol: TCP
port: 50051
targetPort: 50051
- name: metrics
protocol: TCP
port: 50061
targetPort: 50061
- name: https
protocol: TCP
port: 50071
targetPort: 50071