apiVersion: apps/v1
kind: Deployment
metadata:
  name: dns-service
  namespace: container-mom
  labels:
    app.kubernetes.io/name: dns-service
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: dns-service
  template:
    metadata:
      labels:
        app.kubernetes.io/name: dns-service
    spec:
      serviceAccountName: controller-manager
      securityContext:
        fsGroup: 0
      imagePullSecrets:
      - name: ghcr-pull-secret
      containers:
      - name: dns-service
        image: ghcr.io/pfeifferj/container-mom-dns-manager
        resources:
          requests:
            cpu: "100m"
            memory: "128Mi"
          limits:
            cpu: "300m"
            memory: "256Mi"
        ports:
        - containerPort: 8081
          name: http
        env:
        - name: APP_NAME
          value: "dns-service"
---
apiVersion: v1
kind: Service
metadata:
  name: billing-service
  namespace: container-mom
  labels:
    app.kubernetes.io/name: billing-service
spec:
  selector:
    app.kubernetes.io/name: billing-service
  ports:
  - port: 8082
    targetPort: http
    name: http
