Add basic authentification

This commit is contained in:
Adrien Reslinger 2019-09-04 19:08:30 +02:00
parent a0d4f0a26d
commit 212811e224
3 changed files with 21 additions and 0 deletions

View file

@ -11,6 +11,22 @@
api_version: v1
kind: Namespace
- name: Create a Secret object for basic authentification
k8s:
state: present
context: "{{ my_context }}"
definition:
apiVersion: v1
kind: Secret
metadata:
name: basic-auth
namespace: weave
type: Opaque
data:
basic_auth: "{{ basic_auth_data | b64encode }}"
when:
- basic_auth == true
tags: weave
- name: Weave Scope files
k8s: