Prerequirements:

  1. Setup postgresql user password. 
    apiVersion: v1
    kind: Secret
    metadata:
      name: survey-postgres
      namespace: <release-namespace>
      annotations:
        "helm.sh/resource-policy": keep
    type: Opaque
    data:
      postgresql-password: <random-str-in-base64>
      postgresql-postgres-password: <random-str-in-base64>
    
    kubectl -n $NS create secret generic survey-postgres --from-literal=postgresql-password=$PSQL_PSWD --from-literal=postgresql-postgres-password=$PSQL_PSWD
  2. Generate django secret-key. Create k8s secret survey-secrets key secret-key
  3. Generate survey cookie salt: secret survey-secrets key cookie-salt
  4. Create default configmap prozorro-<env>-auction-survey-id-config

After survey app deployed

  1. Create superuser
  2. Create default survey and set it in configmap
  3. Rollout restart prozorro-<env>-auction-frontend