github.com/cilium/cilium@v1.16.2/test/k8s/manifests/high-scale-ipcache.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: server 5 spec: 6 replicas: 50 7 selector: 8 matchLabels: 9 type: server 10 template: 11 metadata: 12 labels: 13 type: server 14 spec: 15 containers: 16 - name: web 17 image: quay.io/cilium/echoserver:1.10.1 18 imagePullPolicy: IfNotPresent 19 ports: 20 - containerPort: 80 21 readinessProbe: 22 httpGet: 23 path: / 24 port: 80 25 --- 26 apiVersion: apps/v1 27 kind: Deployment 28 metadata: 29 name: client 30 spec: 31 replicas: 50 32 selector: 33 matchLabels: 34 type: client 35 template: 36 metadata: 37 labels: 38 type: client 39 spec: 40 containers: 41 - name: web 42 image: quay.io/cilium/demo-client:1.0 43 imagePullPolicy: IfNotPresent 44 command: [ "sleep" ] 45 args: 46 - "1000h" 47 readinessProbe: 48 timeoutSeconds: 7 49 exec: 50 command: 51 - curl 52 - -sS 53 - --fail 54 - --connect-timeout 55 - "5" 56 - -o 57 - /dev/null 58 - http:80/public 59 livenessProbe: 60 timeoutSeconds: 7 61 exec: 62 command: 63 - curl 64 - -sS 65 - --fail 66 - --connect-timeout 67 - "5" 68 - -o 69 - /dev/null 70 - http:80/public 71 --- 72 apiVersion: v1 73 kind: Service 74 metadata: 75 name: http 76 spec: 77 ports: 78 - name: http 79 port: 80 80 targetPort: 80 81 protocol: TCP 82 selector: 83 type: server 84 --- 85 apiVersion: "cilium.io/v2" 86 kind: CiliumNetworkPolicy 87 metadata: 88 name: egress-dns 89 spec: 90 endpointSelector: 91 matchLabels: 92 type: client 93 egress: 94 - toEndpoints: 95 - matchLabels: 96 k8s-app: kube-dns 97 io.kubernetes.pod.namespace: kube-system 98 --- 99 apiVersion: "cilium.io/v2" 100 kind: CiliumNetworkPolicy 101 metadata: 102 name: egress-l3 103 spec: 104 endpointSelector: 105 matchLabels: 106 type: client 107 egress: 108 - toServices: 109 - k8sService: 110 serviceName: http