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

39 lines
897 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
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-07-08 14:45:25 +00:00
chart_version: 5.0.9
2022-09-11 16:49:31 +00:00
release_values: "{{ lookup('ansible.builtin.file', 'values.minio.yaml') | from_yaml }}"