infrastructure/k8s/roles/coder/tasks/main.yml
Peter Kurfer 90526fdbce
All checks were successful
continuous-integration/drone/push Build is passing
chore: update apps
2023-08-15 22:01:15 +02:00

39 lines
No EOL
987 B
YAML

---
- name: Create Coder namespace
kubernetes.core.k8s:
name: coder
api_version: v1
kind: Namespace
state: present
definition:
metadata:
labels:
prometheus: default
- name: Create Coder secret
kubernetes.core.k8s:
state: present
definition:
apiVersion: v1
kind: Secret
metadata:
name: coder-secrets
namespace: coder
data:
DB_URL: "{{ coder.db.url | b64encode }}"
OIDC_CLIENT_ID: "{{ coder.auth.clientId | b64encode }}"
OIDC_CLIENT_SECRET: "{{ coder.auth.clientSecret | b64encode }}"
- name: Add Coder chart repo
kubernetes.core.helm_repository:
name: coderv2
repo_url: https://helm.coder.com/v2
- name: Deploy Coder chart
kubernetes.core.helm:
name: coder
chart_ref: coderv2/coder
release_namespace: coder
chart_version: 2.0.2
update_repo_cache: true
release_values: "{{ lookup('template', 'values.coder.yml.j2') | from_yaml }}"