
# apiVersion: v1
# kind: Service
# metadata:
#   name: hvac-service
# spec:
#   selector:
#     app: hvac-final
#   ports:
#     - port: 5000
#       targetPort: 5000
#   type: LoadBalancer

# ---

apiVersion: apps/v1 

kind: Deployment
metadata:
  name: deployment
spec:
  selector:
    matchLabels:
      app: hvac-final
  replicas: 1
  template:
    metadata:
      labels:
        app: hvac-final
    spec:
      containers:
        - name: hvac-final
          image: pklog680/hvac-final:latest
          imagePullPolicy: Always 
          # ports:
          # - containerPort: 5000

          envFrom:
          - configMapRef:
              name: global
          - secretRef:
              name: secret
          resources:
            limits:
              cpu: "75m"
              memory: "64Mi"