Peter Kurfer
095be2721d
All checks were successful
continuous-integration/drone/push Build is passing
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
---
|
|
- name: Create Zipline namespace
|
|
kubernetes.core.k8s:
|
|
name: zipline
|
|
api_version: v1
|
|
kind: Namespace
|
|
state: present
|
|
definition:
|
|
metadata:
|
|
labels:
|
|
prometheus: default
|
|
|
|
- name: Create Zipline secrets
|
|
kubernetes.core.k8s:
|
|
state: present
|
|
definition:
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: zipline-secret-config
|
|
namespace: zipline
|
|
data:
|
|
# Auth
|
|
CORE_SECRET: "{{ zipline.auth.secret | b64encode }}"
|
|
|
|
# DB
|
|
CORE_DATABASE_URL: "{{ 'postgres://%s:%s@postgres-15-postgresql.postgres.svc.cluster.local:5432/zipline' | format(zipline.db.user, zipline.db.password) | b64encode }}"
|
|
|
|
# Datasource
|
|
DATASOURCE_S3_ACCESS_KEY_ID: "{{ minio.rootUser | b64encode }}"
|
|
DATASOURCE_S3_SECRET_ACCESS_KEY: "{{ minio.rootPassword | b64encode }}"
|
|
|
|
# Auth
|
|
OAUTH_GITHUB_CLIENT_ID: "{{ zipline.auth.clientId | b64encode }}"
|
|
OAUTH_GITHUB_CLIENT_SECRET: "{{ zipline.auth.clientSecret | b64encode }}"
|
|
|
|
- name: Deploy Zipline kustomization
|
|
k8s:
|
|
definition: "{{ lookup('kubernetes.core.kustomize', dir=([role_path, 'files'] | path_join)) }}"
|