-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.yaml
64 lines (64 loc) · 1.39 KB
/
app.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
62
63
64
apiVersion: v1
kind: ServiceAccount
metadata:
name: server
---
apiVersion: v1
kind: Service
metadata:
name: server
spec:
selector:
app: server
ports:
- port: 443
targetPort: 8443
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: server
spec:
selector:
matchLabels:
app: server
replicas: 1
template:
metadata:
labels:
app: server
spec:
serviceAccountName: server
containers:
- name: server
image: manifest-server:latest
imagePullPolicy: Never
volumeMounts:
- name: spire-agent-socket
mountPath: /spire-agent-socket
readOnly: true
- name: svids
mountPath: /var/run/secrets/svids
- name: spiffe-helper-config
mountPath: /opt/spire/config
env:
- name: SPIFFE_ENDPOINT_SOCKET
value: unix:///spire-agent-socket/agent.sock
resources:
limits:
cpu: "1"
memory: "512Mi"
requests:
cpu: "500m"
memory: "256Mi"
volumes:
- name: spire-agent-socket
csi:
driver: "csi.spiffe.io"
readOnly: true
- name: svids
emptyDir: {}
- name: spiffe-helper-config
configMap:
name: server-helper-config