this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Taskfile things

+28 -13
+27 -12
.taskfiles/Talos/Taskfile.yaml
··· 3 3 version: "3" 4 4 5 5 vars: 6 - TALHELPER_CLUSTER_DIR: "{{.KUBERNETES_DIR}}/bootstrap/talos/clusterconfig" 7 - TALHELPER_SECRET_FILE: "{{.KUBERNETES_DIR}}/bootstrap/talos/talsecret.sops.yaml" 8 - TALHELPER_CONFIG_FILE: "{{.KUBERNETES_DIR}}/bootstrap/talos/talconfig.yaml" 9 - HELMFILE_FILE: "{{.KUBERNETES_DIR}}/bootstrap/helmfile.yaml" 6 + TALHELPER_CLUSTER_DIR: "{{.KUBERNETES_DIR}}/nebula/talos/clusterconfig" 7 + TALHELPER_SECRET_FILE: "{{.KUBERNETES_DIR}}/nebula/talos/talsecret.sops.yaml" 8 + TALHELPER_CONFIG_FILE: "{{.KUBERNETES_DIR}}/nebula/talos/talconfig.yaml" 9 + HELMFILE_FILE: "{{.KUBERNETES_DIR}}/helmfile.yaml" 10 10 TALOSCONFIG_FILE: "{{.TALHELPER_CLUSTER_DIR}}/talosconfig" 11 11 12 12 env: ··· 14 14 15 15 tasks: 16 16 17 + apply-config: 18 + desc: Apply configs to Talos cluster 19 + dir: "{{.KUBERNETES_DIR}}/nebula/talos" 20 + cmds: 21 + - | 22 + if [ ! -f "{{.TALHELPER_SECRET_FILE}}" ]; then 23 + talhelper gensecret > {{.TALHELPER_SECRET_FILE}} 24 + sops --encrypt --in-place {{.TALHELPER_SECRET_FILE}} 25 + fi 26 + - talhelper genconfig --config-file {{.TALHELPER_CONFIG_FILE}} --secret-file {{.TALHELPER_SECRET_FILE}} --out-dir {{.TALHELPER_CLUSTER_DIR}} 27 + - talhelper gencommand apply --config-file {{.TALHELPER_CONFIG_FILE}} --out-dir {{.TALHELPER_CLUSTER_DIR}} | bash 28 + preconditions: 29 + - msg: Missing talhelper config file 30 + sh: test -f {{.TALHELPER_CONFIG_FILE}} 31 + - msg: Missing Sops config file 32 + sh: test -f {{.SOPS_CONFIG_FILE}} 33 + 17 34 bootstrap: 18 35 desc: Bootstrap the Talos cluster 19 - dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" 36 + dir: "{{.KUBERNETES_DIR}}/talos" 20 37 cmds: 21 38 - | 22 39 if [ ! -f "{{.TALHELPER_SECRET_FILE}}" ]; then ··· 39 56 40 57 fetch-kubeconfig: 41 58 desc: Fetch kubeconfig 42 - dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" 59 + dir: "{{.KUBERNETES_DIR}}/talos" 43 60 cmd: until talhelper gencommand kubeconfig --config-file {{.TALHELPER_CONFIG_FILE}} --out-dir {{.TALHELPER_CLUSTER_DIR}} --extra-flags="{{.ROOT_DIR}} --force" | bash; do sleep 10; done 44 61 preconditions: 45 62 - msg: Missing talhelper config file ··· 47 64 48 65 install-helm-apps: 49 66 desc: Bootstrap core apps needed for Talos 50 - dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" 67 + dir: "{{.KUBERNETES_DIR}}/talos" 51 68 cmds: 52 69 - until kubectl --kubeconfig {{.KUBECONFIG_FILE}} wait --for=condition=Ready=False nodes --all --timeout=600s; do sleep 10; done 53 70 - helmfile --kubeconfig {{.KUBECONFIG_FILE}} --file {{.HELMFILE_FILE}} apply --skip-diff-on-install --suppress-diff ··· 60 77 61 78 upgrade: 62 79 desc: Upgrade Talos on a node 63 - dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" 80 + dir: "{{.KUBERNETES_DIR}}/talos" 64 81 cmds: 65 82 - talosctl --nodes {{.node}} upgrade --image {{.image}} --wait=true --timeout=10m --preserve=true --reboot-mode={{.mode}} 66 83 - talosctl --nodes {{.node}} health --wait-timeout=10m --server=false ··· 71 88 preconditions: 72 89 - msg: Missing talosconfig 73 90 sh: test -f {{.TALOSCONFIG_FILE}} 74 - - msg: Unable to retrieve Talos config 75 - sh: talosctl config info >/dev/null 2>&1 76 91 - msg: Node not found 77 92 sh: talosctl --nodes {{.node}} get machineconfig >/dev/null 2>&1 78 93 79 94 upgrade-k8s: 80 95 desc: Upgrade Kubernetes across the cluster 81 - dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" 96 + dir: "{{.KUBERNETES_DIR}}/talos" 82 97 cmd: talosctl --nodes {{.controller}} upgrade-k8s --to {{.to}} 83 98 requires: 84 99 vars: ["controller", "to"] ··· 92 107 93 108 nuke: 94 109 desc: Resets nodes back to maintenance mode 95 - dir: "{{.KUBERNETES_DIR}}/bootstrap/talos" 110 + dir: "{{.KUBERNETES_DIR}}/talos" 96 111 prompt: This will destroy your cluster and reset the nodes back to maintenance mode... continue? 97 112 cmd: talhelper gencommand reset --config-file {{.TALHELPER_CONFIG_FILE}} --out-dir {{.TALHELPER_CLUSTER_DIR}} --extra-flags="--reboot {{- if eq .CLI_FORCE false }} --system-labels-to-wipe STATE --system-labels-to-wipe EPHEMERAL{{ end }} --graceful=false --wait=false" | bash 98 113
+1 -1
Taskfile.yaml
··· 6 6 # Directories 7 7 ANSIBLE_DIR: "{{.ROOT_DIR}}/provision/ansible" 8 8 BOOTSTRAP_DIR: "{{.ROOT_DIR}}/bootstrap" 9 - KUBERNETES_DIR: "{{.ROOT_DIR}}/kubernetes" 9 + KUBERNETES_DIR: "{{.ROOT_DIR}}/k8s" 10 10 PRIVATE_DIR: "{{.ROOT_DIR}}/.private" 11 11 SCRIPTS_DIR: "{{.ROOT_DIR}}/scripts" 12 12 # Files