apiVersion: v1 kind: Service metadata: name: airwavetech-helloworld-svc labels: app: airwavetech-helloworld spec: ports: - name: http port: 4999 targetPort: 4998 selector: app: airwavetech-helloworld --- apiVersion: apps/v1 kind: Deployment metadata: name: airwavetechio-hello-world-deployment labels: app: airwavetech-helloworld spec: replicas: 1 selector: matchLabels: app: airwavetech-helloworld template: metadata: labels: app: airwavetech-helloworld annotations: sidecar.istio.io/rewriteAppHTTPProbers: "true" spec: containers: - name: hello-world image: airwavetechio/hello-world:latest env: - name: "AIRWAVE_HW_PORT" valueFrom: configMapKeyRef: name: hello-world-configmap key: AIRWAVE_HW_PORT ports: - containerPort: 4998 name: liveness-port livenessProbe: httpGet: path: / port: liveness-port initialDelaySeconds: 3 periodSeconds: 5 readinessProbe: httpGet: path: / port: liveness-port initialDelaySeconds: 3 periodSeconds: 5 resources: requests: memory: "50Mi" cpu: "100m" limits: memory: "50Mi" cpu: "100m"