apiVersion: apps/v1
kind: Deployment
metadata:
  name: weather-api
spec:
  selector:
    matchLabels:
      app: weather-api
  template:
    metadata:
      labels:
        app: weather-api
    spec:
      terminationGracePeriodSeconds: 6
      containers:
        - name: weather-api
          image: weather-api
          ports:
          - containerPort: 8083
            protocol: TCP
          env:
          - name: DATA_SERVICE_URI
            value: http://data-api.svc.cluster.local:8080/
          - name: CACHE_SERVICE_URI
            value: http://cache-api.svc.cluster.local:9090/
          resources:
            requests:
              memory: "64Mi"
              cpu: "100m"
            limits:
              memory: "128Mi"
              cpu: "500m"