summaryrefslogtreecommitdiff
path: root/dan/k8s-emc.yml
blob: e1b792391740e75c14ffeaa83619925a39bad8a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- name: Basic Node Setup
  hosts: k8s-emc
  roles:
  - role: apt-repo/base
  - role: core/base
  - role: core/sshd/base
  - role: core/zsh
  - role: core/ntp
  - role: apt-repo/spreadspace
  - role: nginx/base
  - role: monitoring/prometheus/exporter

- name: TLS Certificate and sfive data directories for Edge Nodes
  hosts: elevate-mediachannel-edge
  roles:
  - role: x509/acmetool/base
  - role: x509/acmetool/cert
    acmetool_cert_name: "{{ host_name }}.{{ host_domain }}"
  post_tasks:
  - name: create base dir for sfive-hub
    file:
      path: /srv/sfive
      state: directory
  - name: create base dir for cache
    file:
      path: /srv/cache
      state: directory

- import_playbook: ../common/kubernetes-cluster-layout.yml
  vars:
    kubernetes_cluster_layout:
      nodes_group: k8s-emc
      controlplane_nodes:
      - ele-emc-ctrl

### hack hack hack...
- name: cook kubernetes secrets
  hosts: _kubernetes_nodes_
  gather_facts: no
  tasks:
  - set_fact:
      kubernetes_secrets: "{{ kubernetes_secrets }}"
  - when: external_ip is defined
    set_fact:
      external_ip: "{{ external_ip }}"

- import_playbook: ../common/kubernetes-cluster.yml
- import_playbook: ../common/kubernetes-cluster-cleanup.yml

- name: install addons
  hosts: _kubernetes_nodes_
  roles:
  - role: kubernetes/addons/metrics-server
  #- role: kubernetes/addons/openebs-zfs
  - role: kubernetes/addons/cert-manager
  #- role: kubernetes/addons/node-feature-discovery
  #- role: kubernetes/addons/intel-gpu-device-plugin