forked from Azure-Samples/confidential-container-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8sdeploy.yaml
57 lines (57 loc) · 1.27 KB
/
k8sdeploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-cvm-attest
spec:
nodeSelector:
kubernetes.azure.com/security-type: ConfidentialVM
replicas: 1
selector:
matchLabels:
app: azure-cvm-attest
template:
metadata:
labels:
app: azure-cvm-attest
spec:
nodeSelector:
kubernetes.azure.com/security-type: ConfidentialVM
containers:
- name: azure-cvm-attest
image: mcr.microsoft.com/acc/samples/cvm-python-attestation:1.0
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /sys/kernel/security
name: tcg
- mountPath: /dev/tpmrm0
name: tpmrm0
securityContext:
privileged: true
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
ports:
- containerPort: 8081
volumes:
- name: tcg
hostPath:
path: /sys/kernel/security
- name: tpmrm0
hostPath:
path: /dev/tpmrm0
restartPolicy: Never
---
apiVersion: v1
kind: Service
metadata:
name: azure-cvm-attest
spec:
type: LoadBalancer
ports:
- port: 8081
selector:
app: azure-cvm-attest