forked from PaloAltoNetworks/Kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_app.yaml
50 lines (50 loc) · 1.31 KB
/
sample_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
# create a namespace
apiVersion: v1
kind: Namespace
metadata:
name: test
# All pods in a namespace with annotation
# "paloaltonetworks.com/firewall: pan-fw*" are secured
#annotations:
# paloaltonetworks.com/firewall: pan-fw
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
labels:
app: ubuntu-essentials
name: ubuntu-essentials
namespace: test
spec:
replicas: 1
template:
metadata:
labels:
app: ubuntu-essentials
# Pods with annotation "paloaltonetworks.com/firewall: pan-fw*" are secured
annotations:
paloaltonetworks.com/firewall: pan-fw
name: ubuntu-essentials
spec:
#nodeSelector:
# firewall: pan-fw
containers:
- name: ubuntu-essentials
image: gcr.io/vmseries-dev-242318/ubuntu:essentials
command: ["sleep", "infinity"]
resources:
requests:
memory: "100Mi"
cpu: "100m"
limits:
memory: "0.2Gi"
cpu: "200m"
#securityContext:
# capabilities:
# add: ["ALL"]
volumes:
- name: pan-cni-ready
hostPath:
# block this pod scheduling till PAN CNI plugin insertion on the node
path: /var/log/pan-appinfo/pan-cni-ready
type: Directory