Add redis service to cluster
This commit is contained in:
47
ansible-5/roles/prod.k3s/tasks/deployments/funkwhale.yaml
Normal file
47
ansible-5/roles/prod.k3s/tasks/deployments/funkwhale.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
#deployment tasks for gitea
|
||||
|
||||
- name: Create a namespace for funkwhale
|
||||
k8s:
|
||||
kubeconfig: "/etc/rancher/k3s/k3s.yaml"
|
||||
name: "{{apps.funkwhale.namespace}}"
|
||||
api_version: v1
|
||||
kind: Namespace
|
||||
state: "{{apps.funkwhale.state}}"
|
||||
become: true
|
||||
|
||||
#- name: create persistent volume resources
|
||||
# kubernetes.core.k8s:
|
||||
# kubeconfig: "/etc/rancher/k3s/k3s.yaml"
|
||||
# state: "{{apps.funkwhale.state}}"
|
||||
# definition: "{{ lookup('template', item) | from_yaml }}"
|
||||
# loop:
|
||||
# - funkwhale/pv.yaml
|
||||
# - funkwhale/pv-claim.yaml
|
||||
# become: true
|
||||
|
||||
|
||||
- name: Install funkwhale globally available
|
||||
block:
|
||||
- name: Add funkwhale chart helm repo
|
||||
local_action:
|
||||
module: kubernetes.core.helm_repository
|
||||
name: ananace-charts
|
||||
repo_url: https://ananace.gitlab.io/charts
|
||||
|
||||
- name: load variables files/funkwhale/values.yaml
|
||||
ansible.builtin.include_vars:
|
||||
file: files/funkwhale/values.yaml
|
||||
name: release_values
|
||||
|
||||
- name: Install funkwhale Release
|
||||
local_action:
|
||||
module: kubernetes.core.helm
|
||||
release_state: "{{apps.funkwhale.state}}"
|
||||
name: gitea
|
||||
namespace: "{{apps.funkwhale.namespace}}"
|
||||
create_namespace: yes
|
||||
update_repo_cache: True
|
||||
chart_ref: ananace-charts/funkwhale
|
||||
values: "{{release_values}}"
|
||||
wait: true
|
||||
Reference in New Issue
Block a user