--- apiVersion: apps/v1 kind: Deployment metadata: name: attachments namespace: attachments labels: app: attachments spec: replicas: 1 selector: matchLabels: app: attachments template: metadata: labels: app: attachments spec: containers: - name: attachments image: cr.yandex/crp3ccidau046kdj8g9q/attachments:feature_7f051877 imagePullPolicy: IfNotPresent ports: - name: http containerPort: 8000 protocol: TCP env: - name: POSTGRES_POOL_SIZE value: "10" - name: API_ADDRESS value: 0.0.0.0:8000 - name: YANDEX_S3_ACCOUNT_PATH value: /etc/sarex/yc-s3-storage/yc-s3-service-account.json - name: BUCKET_NAME value: attachments-storage - name: DATABASE_SSL_MODE value: disable - name: YANDEX_S3_VERIFY value: "false" - name: YANDEX_S3_USE_SSL value: "false" - name: DATABASE_HOST value: "postgresql.attachments" - name: DATABASE_PORT value: "5432" - name: DATABASE_NAME value: attachments_db - name: DATABASE_USER value: attachments - name: DATABASE_PASSWORD valueFrom: secretKeyRef: name: postgresql-secret key: user-password imagePullSecrets: - name: regcred