kind: Deployment
apiVersion: apps/v1
metadata:
  name: router-name
  namespace: app-created-namespace
  labels:
    "acorn.io/app-namespace": "app-namespace"
    "acorn.io/app-name": "app-name"
    "acorn.io/router-name": "router-name"
    "acorn.io/managed": "true"
spec:
  selector:
    matchLabels:
      "acorn.io/app-namespace": "app-namespace"
      "acorn.io/app-name": "app-name"
      "acorn.io/router-name": "router-name"
      "acorn.io/managed": "true"
  template:
    metadata:
      labels:
        "acorn.io/app-namespace": "app-namespace"
        "acorn.io/app-name": "app-name"
        "acorn.io/router-name": "router-name"
        "acorn.io/managed": "true"
        port-number.acorn.io/8080: "true"
        service-name.acorn.io/router-name: "true"
    spec:
      terminationGracePeriodSeconds: 5
      enableServiceLinks: false
      serviceAccountName: router-name
      containers:
        - name: nginx
          image: ghcr.io/acorn-io/acorn:main
          command:
            - /docker-entrypoint.sh
          args:
            - nginx
            - -g
            - daemon off;
          ports:
          - containerPort: 8080
            name: http
            protocol: TCP
          readinessProbe:
            tcpSocket:
              port: 8080
          resources: {}
          volumeMounts:
          - mountPath: /etc/nginx/conf.d/nginx.conf
            name: conf
            readOnly: true
            subPath: config
      volumes:
      - configMap:
          name: router-name-5f5b2f6b
        name: conf