apiVersion: apps/v1
kind: Deployment
metadata:
  name: container-mom-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      app: container-mom-operator
  template:
    metadata:
      labels:
        app: container-mom-operator
    spec:
      serviceAccountName: container-mom
      containers:
      - name: operator
        image: ghcr.io/pfeifferj/container-mom-operator:latest
        env:
        - name: MONGODB_URI
          valueFrom:
            secretKeyRef:
              name: container-mom-mongodb
              key: uri
        ports:
        - containerPort: 8080
          name: health
        livenessProbe:
          httpGet:
            path: /healthz
            port: health
        readinessProbe:
          httpGet:
            path: /readyz
            port: health 