...
- Setup postgresql user password.
Expand title Create k8s secret survey-postgres 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
- root password is
postgresql-postgres-password
secret key - service user password
postgresql-password
secret key; usernamesurvey
- root password is
- Generate django secret-key. Create k8s secret
survey-secrets
keysecret-key
python3 -c "import secrets; print(secrets.token_urlsafe())" | base64
ORpip install django && python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())' | base64
- copy output and set as secret
- Generate survey cookie salt: secret
survey-secrets
keycookie-salt
python3 -c "import secrets; print(secrets.token_urlsafe()[0:10])" | base64
ORpython -c 'import uuid; print(uuid.uuid4().hex[0:10])' | base64
- copy output and set as secret
- Create default configmap
prozorro-<env>-auction-survey-id-config
...