1apiVersion: apps/v1 2kind: Deployment 3metadata: 4 name: nginx 5 labels: 6 app: nginx 7spec: 8 selector: 9 matchLabels: 10 app: nginx 11 replicas: 1 12 template: 13 metadata: 14 annotations: 15 linkerd.io/inject: "enabled" 16 labels: 17 app: nginx 18 spec: 19 containers: 20 - name: nginx 21 image: nginx:alpine 22--- 23apiVersion: v1 24kind: Service 25metadata: 26 name: nginx 27spec: 28 ports: 29 - name: service 30 port: 8080 31 selector: 32 app: nginx