Skip to content

Commit 3c32e94

Browse files
committed
ci: test manifests
1 parent 14b9998 commit 3c32e94

File tree

3 files changed

+201
-0
lines changed

3 files changed

+201
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Only allows traffic within the default namespace
2+
apiVersion: cilium.io/v2
3+
kind: CiliumNetworkPolicy
4+
metadata:
5+
name: allow-default
6+
spec:
7+
endpointSelector: {}
8+
ingress:
9+
- fromEndpoints:
10+
- matchLabels:
11+
k8s:io.kubernetes.pod.namespace: default
12+
egress:
13+
- toEndpoints:
14+
- matchLabels:
15+
k8s:io.kubernetes.pod.namespace: default
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
apiVersion: v1 #Not verified, placeholder
2+
data:
3+
agent-not-ready-taint-key: node.cilium.io/agent-not-ready
4+
arping-refresh-period: 30s
5+
auto-direct-node-routes: "false"
6+
bpf-lb-external-clusterip: "false"
7+
bpf-lb-map-max: "65536"
8+
bpf-lb-mode: snat
9+
bpf-map-dynamic-size-ratio: "0.0025"
10+
bpf-policy-map-max: "16384"
11+
bpf-root: /sys/fs/bpf
12+
cgroup-root: /run/cilium/cgroupv2
13+
cilium-endpoint-gc-interval: 5m0s
14+
cni-chaining-mode: generic-veth
15+
cluster-id: "0"
16+
cluster-name: default
17+
debug: "false"
18+
disable-cnp-status-updates: "true"
19+
disable-endpoint-crd: "false"
20+
enable-auto-protect-node-port-range: "true"
21+
enable-bgp-control-plane: "false"
22+
enable-bpf-clock-probe: "true"
23+
enable-endpoint-health-checking: "false"
24+
enable-endpoint-routes: "true"
25+
enable-health-check-nodeport: "true"
26+
enable-health-checking: "true"
27+
enable-host-legacy-routing: "true"
28+
enable-hubble: "false"
29+
enable-ipv4: "true"
30+
enable-ipv4-masquerade: "false"
31+
enable-ipv6: "false"
32+
enable-ipv6-masquerade: "false"
33+
enable-k8s-terminating-endpoint: "true"
34+
enable-l2-neigh-discovery: "true"
35+
enable-l7-proxy: "false"
36+
enable-local-node-route: "false"
37+
enable-local-redirect-policy: "true" # set to true for lrp test
38+
enable-metrics: "true"
39+
enable-policy: default
40+
enable-session-affinity: "true"
41+
enable-svc-source-range-check: "true"
42+
enable-vtep: "false"
43+
enable-well-known-identities: "false"
44+
enable-xt-socket-fallback: "true"
45+
identity-allocation-mode: crd
46+
install-iptables-rules: "true"
47+
install-no-conntrack-iptables-rules: "false"
48+
ipam: delegated-plugin
49+
kube-proxy-replacement: "true"
50+
kube-proxy-replacement-healthz-bind-address: "0.0.0.0:10256" ## Remove if kube-proxy is enabled
51+
local-router-ipv4: 169.254.23.0
52+
metrics: +cilium_bpf_map_pressure
53+
monitor-aggregation: medium
54+
monitor-aggregation-flags: all
55+
monitor-aggregation-interval: 5s
56+
node-port-bind-protection: "true"
57+
nodes-gc-interval: 5m0s
58+
operator-api-serve-addr: 127.0.0.1:9234
59+
operator-prometheus-serve-addr: :9963
60+
preallocate-bpf-maps: "false"
61+
procfs: /host/proc
62+
prometheus-serve-addr: :9962
63+
remove-cilium-node-taints: "true"
64+
set-cilium-is-up-condition: "true"
65+
sidecar-istio-proxy-image: cilium/istio_proxy
66+
synchronize-k8s-nodes: "true"
67+
tofqdns-dns-reject-response-code: refused
68+
tofqdns-enable-dns-compression: "true"
69+
tofqdns-endpoint-max-ip-per-hostname: "1000"
70+
tofqdns-idle-connection-grace-period: 0s
71+
tofqdns-max-deferred-connection-deletes: "10000"
72+
tofqdns-min-ttl: "0"
73+
tofqdns-proxy-response-max-delay: 100ms
74+
routing-mode: native
75+
unmanaged-pod-watcher-interval: "15"
76+
vtep-cidr: ""
77+
vtep-endpoint: ""
78+
vtep-mac: ""
79+
vtep-mask: ""
80+
enable-sctp: "false"
81+
external-envoy-proxy: "false"
82+
k8s-client-qps: "10"
83+
k8s-client-burst: "20"
84+
mesh-auth-enabled: "true"
85+
mesh-auth-queue-size: "1024"
86+
mesh-auth-rotated-identities-queue-size: "1024"
87+
mesh-auth-gc-interval: "5m0s"
88+
proxy-connect-timeout: "2"
89+
proxy-max-requests-per-connection: "0"
90+
proxy-max-connection-duration-seconds: "0"
91+
set-cilium-node-taints: "true"
92+
unmanaged-pod-watcher-interval: "15"
93+
## new values added for 1.16 below
94+
enable-ipv4-big-tcp: "false"
95+
enable-ipv6-big-tcp: "false"
96+
enable-masquerade-to-route-source: "false"
97+
enable-health-check-loadbalancer-ip: "false"
98+
bpf-lb-acceleration: "disabled"
99+
enable-k8s-networkpolicy: "true"
100+
cni-exclusive: "false" # Cilium takes ownership of /etc/cni/net.d, pods cannot be scheduled with any other cni if cilium is down
101+
cni-log-file: "/var/run/cilium/cilium-cni.log"
102+
ipam-cilium-node-update-rate: "15s"
103+
egress-gateway-reconciliation-trigger-interval: "1s"
104+
nat-map-stats-entries: "32"
105+
nat-map-stats-interval: "30s"
106+
bpf-events-drop-enabled: "true" # exposes drop events to cilium monitor/hubble
107+
bpf-events-policy-verdict-enabled: "true" # exposes policy verdict events to cilium monitor/hubble
108+
bpf-events-trace-enabled: "true" # exposes trace events to cilium monitor/hubble
109+
enable-tcx: "false" # attach endpoint programs with tcx if supported by kernel
110+
datapath-mode: "veth"
111+
direct-routing-skip-unreachable: "false"
112+
enable-runtime-device-detection: "false"
113+
bpf-lb-sock: "false"
114+
bpf-lb-sock-terminate-pod-connections: "false"
115+
nodeport-addresses: ""
116+
k8s-require-ipv4-pod-cidr: "false"
117+
k8s-require-ipv6-pod-cidr: "false"
118+
enable-node-selector-labels: "false"
119+
## new values for 1.17
120+
ces-slice-mode: "fcfs"
121+
enable-cilium-endpoint-slice: "true"
122+
bpf-lb-source-range-all-types: "false"
123+
bpf-algorithm-annotation: "false"
124+
bpf-lb-mode-annotation: "false"
125+
enable-experimental-lb: "false"
126+
enable-endpoint-lockdown-on-policy-overflow: "false"
127+
health-check-icmp-failure-threshold: "3"
128+
enable-internal-traffic-policy: "true"
129+
enable-lb-ipam: "true"
130+
enable-non-default-deny-policies: "true"
131+
enable-source-ip-verification: "true"
132+
kind: ConfigMap
133+
metadata:
134+
annotations:
135+
meta.helm.sh/release-name: cilium
136+
meta.helm.sh/release-namespace: kube-system
137+
labels:
138+
app.kubernetes.io/managed-by: Helm
139+
name: cilium-config
140+
namespace: kube-system
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: container
5+
namespace: default
6+
spec:
7+
selector:
8+
matchLabels:
9+
app: container
10+
replicas: 1
11+
template: # create pods using pod definition in this template
12+
metadata:
13+
# unlike pod-nginx.yaml, the name is not included in the meta data as a unique name is
14+
# generated from the deployment name
15+
labels:
16+
app: container
17+
kubernetes.azure.com/pod-network-instance: pni
18+
spec:
19+
containers:
20+
- name: container
21+
image: mcr.microsoft.com/azurelinux/busybox:1.36
22+
command:
23+
- sh
24+
- -c
25+
- sleep 3650d
26+
imagePullPolicy: Always
27+
securityContext:
28+
privileged: true
29+
nodeSelector:
30+
kubernetes.io/os: linux
31+
tolerations:
32+
- key: "cri-resource-consume"
33+
operator: "Equal"
34+
value: "true"
35+
effect: "NoSchedule"
36+
- key: "cri-resource-consume"
37+
operator: "Equal"
38+
value: "true"
39+
effect: "NoExecute"
40+
topologySpreadConstraints:
41+
- maxSkew: 1
42+
topologyKey: kubernetes.io/hostname # KV: Key is hostname, value is each unique nodename
43+
whenUnsatisfiable: ScheduleAnyway
44+
labelSelector:
45+
matchLabels:
46+
app: container

0 commit comments

Comments
 (0)