github.com/cilium/cilium@v1.16.2/test/k8s/manifests/demo_ds.yaml (about) 1 --- 2 apiVersion: apps/v1 3 kind: DaemonSet 4 metadata: 5 name: testds 6 spec: 7 selector: 8 matchLabels: 9 zgroup: testDS 10 template: 11 metadata: 12 labels: 13 zgroup: testDS 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 - name: udp 26 image: quay.io/cilium/echoserver-udp:v2020.01.30 27 imagePullPolicy: IfNotPresent 28 ports: 29 - containerPort: 69 30 protocol: UDP 31 terminationGracePeriodSeconds: 0 32 tolerations: 33 - effect: NoSchedule 34 key: node-role.kubernetes.io/master 35 - effect: NoSchedule 36 key: node-role.kubernetes.io/control-plane 37 - effect: NoSchedule 38 key: node.cloudprovider.kubernetes.io/uninitialized 39 value: "true" 40 --- 41 apiVersion: apps/v1 42 kind: DaemonSet 43 metadata: 44 name: testclient 45 spec: 46 selector: 47 matchLabels: 48 zgroup: testDSClient 49 template: 50 metadata: 51 labels: 52 zgroup: testDSClient 53 spec: 54 terminationGracePeriodSeconds: 0 55 containers: 56 - name: web 57 image: quay.io/cilium/demo-client:1.0 58 imagePullPolicy: IfNotPresent 59 command: [ "sleep" ] 60 args: 61 - "1000h" 62 --- 63 apiVersion: apps/v1 64 kind: Deployment 65 metadata: 66 name: test-k8s2 67 spec: 68 selector: 69 matchLabels: 70 zgroup: test-k8s2 71 template: 72 metadata: 73 labels: 74 zgroup: test-k8s2 75 spec: 76 containers: 77 - name: web 78 image: quay.io/cilium/echoserver:1.10.1 79 imagePullPolicy: IfNotPresent 80 ports: 81 - containerPort: 80 82 hostPort: 8080 83 readinessProbe: 84 httpGet: 85 path: / 86 port: 80 87 - name: udp 88 image: quay.io/cilium/echoserver-udp:v2020.01.30 89 imagePullPolicy: IfNotPresent 90 ports: 91 - containerPort: 69 92 hostPort: 6969 93 protocol: UDP 94 terminationGracePeriodSeconds: 0 95 nodeSelector: 96 "cilium.io/ci-node": k8s2 97 --- 98 apiVersion: v1 99 kind: Service 100 metadata: 101 name: testds-service 102 spec: 103 ports: 104 - name: http 105 port: 80 106 targetPort: 80 107 protocol: TCP 108 - name: tftp 109 port: 69 110 targetPort: 69 111 protocol: UDP 112 selector: 113 zgroup: testDS 114 --- 115 apiVersion: v1 116 kind: Service 117 metadata: 118 name: test-nodeport 119 spec: 120 type: NodePort 121 ports: 122 - port: 10080 123 targetPort: 80 124 protocol: TCP 125 name: http 126 - port: 10069 127 targetPort: 69 128 protocol: UDP 129 name: tftp 130 selector: 131 zgroup: testDS 132 --- 133 apiVersion: v1 134 kind: Service 135 metadata: 136 name: test-affinity 137 spec: 138 type: NodePort 139 ports: 140 - port: 10080 141 targetPort: 80 142 protocol: TCP 143 name: http 144 - port: 10069 145 targetPort: 69 146 protocol: UDP 147 name: tftp 148 sessionAffinity: ClientIP 149 selector: 150 zgroup: testDS 151 --- 152 apiVersion: v1 153 kind: Service 154 metadata: 155 name: test-nodeport-local 156 spec: 157 type: NodePort 158 externalTrafficPolicy: Local 159 ports: 160 - port: 10080 161 targetPort: 80 162 protocol: TCP 163 name: http 164 - port: 10069 165 targetPort: 69 166 protocol: UDP 167 name: tftp 168 selector: 169 zgroup: testDS 170 --- 171 apiVersion: v1 172 kind: Service 173 metadata: 174 name: test-nodeport-local-k8s2 175 spec: 176 type: NodePort 177 externalTrafficPolicy: Local 178 ports: 179 - port: 10080 180 targetPort: 80 181 protocol: TCP 182 name: http 183 - port: 10069 184 targetPort: 69 185 protocol: UDP 186 name: tftp 187 selector: 188 zgroup: test-k8s2 189 --- 190 apiVersion: v1 191 kind: Service 192 metadata: 193 name: test-nodeport-k8s2 194 spec: 195 type: NodePort 196 ports: 197 - port: 10080 198 targetPort: 80 199 protocol: TCP 200 name: http 201 - port: 10069 202 targetPort: 69 203 protocol: UDP 204 name: tftp 205 selector: 206 zgroup: test-k8s2 207 --- 208 apiVersion: v1 209 kind: Service 210 metadata: 211 name: test-lb 212 spec: 213 type: LoadBalancer 214 ports: 215 - port: 80 216 targetPort: 80 217 protocol: TCP 218 name: http 219 selector: 220 zgroup: testDS 221 --- 222 apiVersion: v1 223 kind: Service 224 metadata: 225 name: test-lb-local-k8s2 226 spec: 227 type: LoadBalancer 228 externalTrafficPolicy: Local 229 ports: 230 - port: 80 231 targetPort: 80 232 protocol: TCP 233 name: http 234 selector: 235 zgroup: test-k8s2 236 --- 237 apiVersion: v1 238 kind: Service 239 metadata: 240 name: test-external-ips 241 spec: 242 type: NodePort 243 ports: 244 - port: 20080 245 targetPort: 80 246 protocol: TCP 247 name: http 248 - port: 20069 249 targetPort: 69 250 protocol: UDP 251 name: tftp 252 externalIPs: 253 - 192.0.2.233 254 selector: 255 zgroup: testDS