34 lines
794 B
YAML
34 lines
794 B
YAML
|
---
|
||
|
- 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
|
||
|
release_values: "{{ lookup('ansible.builtin.file', 'values.minio.yaml') | from_yaml }}"
|