feat(external): initial playbook to create secrets for pipelines

This commit is contained in:
Khue Doan 2021-12-24 19:15:48 +07:00
parent 1edf909ea3
commit 6a7709cec9

26
external/secrets.yml Normal file
View File

@ -0,0 +1,26 @@
# pip install kuberentes
- name: Bootstrap external secrets
hosts: localhost
vars_prompt:
- name: cloudflare_email
prompt: Enter Cloudflare email
- name: cloudflare_api_key
prompt: Enter Cloudflare API Key
- name: cloudflare_account_id
prompt: Enter Cloudflare account ID
- name: b2_application_key_id
prompt: Enter Backblaze application key ID
- name: b2_application_key
prompt: Enter Backblaze application key
tasks:
- name: Ensure required namespaces exist
kubernetes.core.k8s:
name: "{{ item }}"
api_version: v1
kind: Namespace
state: present
loop:
- tekton-pipelines
- cert-manager
- external-dns
- cloudflared