--- - name: Create fider namespace kubernetes.core.k8s: name: fider api_version: v1 kind: Namespace state: present definition: metadata: labels: prometheus: default - name: Create Fider secrets kubernetes.core.k8s: state: present definition: apiVersion: v1 kind: Secret metadata: name: fider-secret-config namespace: fider data: # Connection string to the PostgreSQL database DATABASE_URL: "{{ 'postgres://%s:%s@postgres-15-postgresql.postgres.svc.cluster.local:5432/fider?sslmode=disable' | format(fider.db.user, fider.db.password) | b64encode }}" # SMTP credentials EMAIL_NOREPLY: "{{ fider.smtp.user | b64encode }}" EMAIL_SMTP_USERNAME: "{{ fider.smtp.user | b64encode }}" EMAIL_SMTP_PASSWORD: "{{ fider.smtp.password | b64encode }}" # JWT secret key JWT_SECRET: "{{ fider.jwt.secret | b64encode }}" # OAuth OAUTH_GITHUB_CLIENTID: "{{ fider.github.clientId | b64encode }}" OAUTH_GITHUB_SECRET: "{{ fider.github.clientSecret | b64encode }}" # Blob storage BLOB_STORAGE_S3_ACCESS_KEY_ID: "{{ minio.rootUser | b64encode }}" BLOB_STORAGE_S3_SECRET_ACCESS_KEY: "{{ minio.rootPassword | b64encode }}" - name: Deploy Fider kustomization k8s: definition: "{{ lookup('kubernetes.core.kustomize', dir=([role_path, 'files'] | path_join)) }}"