infrastructure/k8s/roles/minio/tasks/main.yml

35 lines
819 B
YAML
Raw Normal View History

2022-09-11 16:49:31 +00:00
---
- name: Create MinIO namespace
kubernetes.core.k8s:
name: minio
api_version: v1
kind: Namespace
state: present
- name: Create MinIO secret
kubernetes.core.k8s:
state: present
definition:
apiVersion: v1
kind: Secret
metadata:
name: minio-credentials
namespace: minio
data:
rootUser: "{{ minio.rootUser | b64encode }}"
rootPassword: "{{ minio.rootPassword | b64encode }}"
- name: Add MinIO chart repo
kubernetes.core.helm_repository:
name: minio
repo_url: https://charts.min.io/
- name: Deploy MinIO chart
kubernetes.core.helm:
name: minio
chart_ref: minio/minio
release_namespace: minio
2022-11-15 19:38:29 +00:00
chart_version: 5.0.0
2022-09-11 16:49:31 +00:00
release_values: "{{ lookup('ansible.builtin.file', 'values.minio.yaml') | from_yaml }}"