sigs.k8s.io/cluster-api-provider-aws@v1.5.5/test/e2e/data/gcworkload.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: podinfo 5 spec: 6 minReadySeconds: 3 7 revisionHistoryLimit: 5 8 progressDeadlineSeconds: 60 9 strategy: 10 rollingUpdate: 11 maxUnavailable: 0 12 type: RollingUpdate 13 selector: 14 matchLabels: 15 app: podinfo 16 template: 17 metadata: 18 annotations: 19 prometheus.io/scrape: "true" 20 prometheus.io/port: "9797" 21 labels: 22 app: podinfo 23 spec: 24 containers: 25 - name: podinfod 26 image: ghcr.io/stefanprodan/podinfo:6.1.6 27 imagePullPolicy: IfNotPresent 28 ports: 29 - name: http 30 containerPort: 9898 31 protocol: TCP 32 - name: http-metrics 33 containerPort: 9797 34 protocol: TCP 35 - name: grpc 36 containerPort: 9999 37 protocol: TCP 38 command: 39 - ./podinfo 40 - --port=9898 41 - --port-metrics=9797 42 - --grpc-port=9999 43 - --grpc-service-name=podinfo 44 - --level=info 45 - --random-delay=false 46 - --random-error=false 47 env: 48 - name: PODINFO_UI_COLOR 49 value: "#34577c" 50 livenessProbe: 51 exec: 52 command: 53 - podcli 54 - check 55 - http 56 - localhost:9898/healthz 57 initialDelaySeconds: 5 58 timeoutSeconds: 5 59 readinessProbe: 60 exec: 61 command: 62 - podcli 63 - check 64 - http 65 - localhost:9898/readyz 66 initialDelaySeconds: 5 67 timeoutSeconds: 5 68 resources: 69 limits: 70 cpu: 2000m 71 memory: 512Mi 72 requests: 73 cpu: 100m 74 memory: 64Mi 75 --- 76 apiVersion: v1 77 kind: Service 78 metadata: 79 name: podinfo-elb 80 spec: 81 type: LoadBalancer 82 selector: 83 app: podinfo 84 ports: 85 - name: http 86 port: 9898 87 protocol: TCP 88 targetPort: http 89 - port: 9999 90 targetPort: grpc 91 protocol: TCP 92 name: grpc 93 --- 94 apiVersion: v1 95 kind: Service 96 metadata: 97 name: podinfo-nlb 98 annotations: 99 service.beta.kubernetes.io/aws-load-balancer-type: "nlb" 100 spec: 101 type: LoadBalancer 102 selector: 103 app: podinfo 104 ports: 105 - name: http 106 port: 9898 107 protocol: TCP 108 targetPort: http 109 - port: 9999 110 targetPort: grpc 111 protocol: TCP 112 name: grpc