apiVersion: apps/v1
kind: Deployment
metadata:
  name: notification-service-deployment
  labels:
    app: notification-service
spec:
  replicas: 1
  selector:
    matchLabels:
      app: notification-service
  template:
    metadata:
      labels:
        app: notification-service
    spec:
      containers:
        - name: notification-service
          image: notification-service:0.0.1-SNAPSHOT # This image needs to be built and pushed to a registry
          ports:
            - containerPort: 8083
          env:
            # Example of an environment variable
            - name: SPRING_PROFILES_ACTIVE
              value: prod
          resources:
            limits:
              memory: "512Mi"
              cpu: "500m"
            requests:
              memory: "256Mi"
              cpu: "200m"
