Skip to content
Snippets Groups Projects
Select Git revision
  • 65ebd728d08fc875d2f6834cbe98f7c7501756b9
  • master default
2 results

04_uc-postgresql.yaml

Blame
  • 04_uc-postgresql.yaml 1.85 KiB
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      annotations:
        field.cattle.io/description: postgreql for uc component
      name: uc-postgresql
      namespace: citizen-data-ownership-usage-control
    spec:
      progressDeadlineSeconds: 600
      replicas: 1
      revisionHistoryLimit: 10
      selector:
        matchLabels:
          workload.user.cattle.io/workloadselector: apps.deployment-uc-postgresql
      strategy:
        rollingUpdate:
          maxSurge: 25%
          maxUnavailable: 25%
        type: RollingUpdate
      template:
        metadata:
          creationTimestamp: null
          labels:
            workload.user.cattle.io/workloadselector: apps.deployment-uc-postgresql
        spec:
          affinity: {}
          containers:
          - env:
            - name: POSTGRES_DB
              value: usagecontrol
            - name: POSTGRES_USER
              value: connector
            - name: POSTGRES_PASSWORD
              value: "12345"
            image: postgres:14.2
            imagePullPolicy: IfNotPresent
            name: container-0
            ports:
            - containerPort: 5432
              name: uc-postgresql
              protocol: TCP
            resources: {}
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /var/lib/postgresql/data
              name: uc-postgresql
              subPath: uc-postgresql-volume
            - mountPath: /docker-entrypoint-initdb.d
              name: uc-postgresql-init
          dnsConfig: {}
          dnsPolicy: ClusterFirst
          hostAliases:
          - hostnames:
            - across.digital.tecnalia.dev
            ip: 172.26.41.211
          restartPolicy: Always
          schedulerName: default-scheduler
          securityContext: {}
          terminationGracePeriodSeconds: 30
          volumes:
          - name: uc-postgresql
            persistentVolumeClaim:
              claimName: uc-postgresql-pv-claim
          - name: uc-postgresql-init
            configMap: 
              name: uc-postgresql-init-configmap