github.com/castai/kvisor@v1.7.1-0.20240516114728-b3572a2607b5/demo/0.anomaly/client-server.yaml (about) 1 --- 2 apiVersion: v1 3 kind: Namespace 4 metadata: 5 name: anomaly 6 --- 7 apiVersion: apps/v1 8 kind: Deployment 9 metadata: 10 name: client 11 namespace: anomaly 12 labels: 13 app: client 14 spec: 15 replicas: 1 16 selector: 17 matchLabels: 18 app: client 19 template: 20 metadata: 21 labels: 22 app: client 23 spec: 24 containers: 25 - name: curl-nginx 26 image: curlimages/curl 27 command: ["/bin/sh", "-ec", "while :; do curl http://server; sleep 5 ; done"] 28 securityContext: 29 seccompProfile: 30 #localhostProfile: profiles/anomaly-deployment-client-curl-public.json 31 #type: Localhost 32 type: RuntimeDefault 33 # - name: curl-public 34 # image: curlimages/curl 35 # command: [ "/bin/sh", "-ec", "while :; do curl https://delfi.lt.; sleep 5 ; done" ] 36 --- 37 apiVersion: apps/v1 38 kind: Deployment 39 metadata: 40 name: server 41 namespace: anomaly 42 labels: 43 app: server 44 spec: 45 replicas: 2 46 selector: 47 matchLabels: 48 app: server 49 template: 50 metadata: 51 labels: 52 app: server 53 spec: 54 containers: 55 - name: nginx 56 image: nginx:1.14.2 57 ports: 58 - containerPort: 80 59 --- 60 apiVersion: v1 61 kind: Service 62 metadata: 63 name: server 64 namespace: anomaly 65 spec: 66 selector: 67 app: server 68 ports: 69 - protocol: TCP 70 port: 80 71 targetPort: 80