github.phpd.cn/cilium/cilium@v1.6.12/test/k8sT/manifests/server.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: app{{.Index}}-service 5 labels: 6 zgroup: testapp 7 spec: 8 ports: 9 - port: 80 10 selector: 11 id: app{{.Index}} 12 --- 13 apiVersion: v1 14 kind: Pod 15 metadata: 16 name: app{{.Index}} 17 labels: 18 id: app{{.Index}} 19 zgroup: testapp 20 spec: 21 containers: 22 - name: web 23 image: docker.io/cilium/connectivity-container:v1.0 24 imagePullPolicy: IfNotPresent 25 ports: 26 - containerPort: 80 27 volumeMounts: 28 - name: html-volume 29 mountPath: /var/www 30 volumes: 31 - name: html-volume 32 configMap: 33 name: html