apiVersion: apps/v1 kind: Deployment metadata: labels: app: spoolman name: spoolman spec: replicas: 1 selector: matchLabels: app: spoolman strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: spoolman spec: containers: - image: ghcr.io/donkie/spoolman:0.22 env: - name: SPOOLMAN_DB_TYPE value: postgres - name: SPOOLMAN_DB_HOST value: postgres-spoolman - name: SPOOLMAN_DB_USERNAME valueFrom: secretKeyRef: name: spoolman.postgres-spoolman.credentials.postgresql.acid.zalan.do key: username - name: SPOOLMAN_DB_PASSWORD valueFrom: secretKeyRef: name: spoolman.postgres-spoolman.credentials.postgresql.acid.zalan.do key: password imagePullPolicy: IfNotPresent name: spoolman resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 status: {}