apiVersion: apps/v1
kind: Deployment
metadata:
  name: prodadservice
spec:
  selector:
    matchLabels:
      app: prodadservice
  template:
    metadata:
      labels:
        app: prodadservice
    spec:
      terminationGracePeriodSeconds: 5
      containers:
      - name: server
        image: gcr.io/google-samples/microservices-demo/adservice:v0.1.3
        ports:
        - containerPort: 9555
        env:
        - name: PORT
          value: "9555"
        # - name: JAEGER_SERVICE_ADDR
        #   value: "jaeger-collector.observability.svc.cluster.local:14268"
        resources:
          requests:
            cpu: 200m
            memory: 180Mi
          limits:
            cpu: 300m
            memory: 300Mi
        readinessProbe:
          initialDelaySeconds: 20
          periodSeconds: 15
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:9555"]
        livenessProbe:
          initialDelaySeconds: 20
          periodSeconds: 15
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:9555"]
