2022-09-11 16:49:31 +00:00
|
|
|
---
|
|
|
|
- name: Create MinIO namespace
|
|
|
|
kubernetes.core.k8s:
|
|
|
|
name: minio
|
|
|
|
api_version: v1
|
|
|
|
kind: Namespace
|
|
|
|
state: present
|
2022-12-28 17:38:21 +00:00
|
|
|
definition:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
prometheus: default
|
2022-09-11 16:49:31 +00:00
|
|
|
|
|
|
|
- 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
|
2023-01-21 17:25:18 +00:00
|
|
|
chart_version: 5.0.4
|
2022-09-11 16:49:31 +00:00
|
|
|
release_values: "{{ lookup('ansible.builtin.file', 'values.minio.yaml') | from_yaml }}"
|