48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
|
---
|
||
|
- name: Create CodiMD namespace
|
||
|
kubernetes.core.k8s:
|
||
|
name: codimd
|
||
|
api_version: v1
|
||
|
kind: Namespace
|
||
|
state: present
|
||
|
definition:
|
||
|
metadata:
|
||
|
labels:
|
||
|
prometheus: default
|
||
|
|
||
|
- name: Add CodiMD chart repo
|
||
|
kubernetes.core.helm_repository:
|
||
|
name: codimd
|
||
|
repo_url: https://helm.codimd.dev/
|
||
|
|
||
|
- name: Deploy CodiMD chart
|
||
|
kubernetes.core.helm:
|
||
|
name: codimd
|
||
|
chart_ref: codimd/codimd
|
||
|
release_namespace: codimd
|
||
|
chart_version: 0.1.10
|
||
|
update_repo_cache: true
|
||
|
release_values: "{{ lookup('template', 'values.codimd.yml.j2') | from_yaml }}"
|
||
|
|
||
|
- name: Create CodiMD ingress
|
||
|
kubernetes.core.k8s:
|
||
|
state: present
|
||
|
definition:
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: codimd
|
||
|
namespace: codimd
|
||
|
spec:
|
||
|
rules:
|
||
|
- host: kb.icb4dc0.de
|
||
|
http:
|
||
|
paths:
|
||
|
- pathType: Prefix
|
||
|
path: "/"
|
||
|
backend:
|
||
|
service:
|
||
|
name: codimd
|
||
|
port:
|
||
|
number: 80
|
||
|
|