feat(k0s): unsupport it (#1291)
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
3e0fb233b6
commit
eab63476b7
48 files changed
+22
-505
No files matched your search
@@ -1,46 +0,0 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://taskfile.dev/schema.json
|
||||
version: "3"
|
||||
|
||||
vars:
|
||||
K0S_DIR: "{{.KUBERNETES_DIR}}/k0s"
|
||||
K0S_CONFIG_FILE: "{{.K0S_DIR}}/k0sctl.yaml"
|
||||
|
||||
env:
|
||||
DISABLE_TELEMETRY: "true"
|
||||
DISABLE_UPGRADE_CHECK: "true"
|
||||
|
||||
tasks:
|
||||
|
||||
apply:
|
||||
desc: Apply k0s cluster config
|
||||
dir: "{{.K0S_DIR}}"
|
||||
cmds:
|
||||
- k0sctl apply --config {{.K0S_CONFIG_FILE}}
|
||||
- task: kubeconfig
|
||||
preconditions:
|
||||
- { msg: "Missing K0s config file", sh: "test -f {{.K0S_CONFIG_FILE}}" }
|
||||
|
||||
nuke:
|
||||
desc: Nuke the k0s cluster
|
||||
dir: "{{.K0S_DIR}}"
|
||||
cmd: k0sctl reset --config {{.K0S_CONFIG_FILE}}
|
||||
preconditions:
|
||||
- { msg: "Missing K0s config file", sh: "test -f {{.K0S_CONFIG_FILE}}" }
|
||||
|
||||
kubeconfig:
|
||||
desc: Gets k0s kubeconfig
|
||||
dir: "{{.K0S_DIR}}"
|
||||
prompt: This will overwrite the existing kubeconfig... continue?
|
||||
cmds:
|
||||
- k0sctl kubeconfig --config {{.K0S_CONFIG_FILE}} > {{.KUBECONFIG_FILE}}
|
||||
- sed -i {{if eq OS "darwin"}}''{{end}} 's|https://.+:6443|https://{{.endpoint}}:6443|g' {{.KUBECONFIG_FILE}}
|
||||
vars:
|
||||
endpoint:
|
||||
sh: "yq '.cluster.endpoint_vip' {{.BOOTSTRAP_CONFIG_FILE}}"
|
||||
preconditions:
|
||||
- { msg: "Missing K0s config file", sh: "test -f {{.K0S_CONFIG_FILE}}" }
|
||||
|
||||
.reset:
|
||||
internal: true
|
||||
cmd: rm -rf {{.K0S_CONFIG_FILE}}
|
||||
@@ -25,7 +25,6 @@ tasks:
|
||||
prompt: Reset templated configuration files... continue?
|
||||
cmds:
|
||||
- task: :ansible:.reset
|
||||
- task: :k0s:.reset
|
||||
- task: :kubernetes:.reset
|
||||
- task: :sops:.reset
|
||||
- task: :talos:.reset
|
||||
|
||||
@@ -6,7 +6,6 @@ go-task
|
||||
go-yq
|
||||
helm
|
||||
jq
|
||||
k0sctl-bin
|
||||
kubeconform
|
||||
kubectl-bin
|
||||
kustomize
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
tap "fluxcd/tap"
|
||||
tap "go-task/tap"
|
||||
tap "k0sproject/tap"
|
||||
tap "siderolabs/talos"
|
||||
brew "age"
|
||||
brew "cloudflared"
|
||||
@@ -9,7 +8,6 @@ brew "fluxcd/tap/flux"
|
||||
brew "go-task/tap/go-task"
|
||||
brew "helm"
|
||||
brew "jq"
|
||||
brew "k0sproject/tap/k0sctl"
|
||||
brew "kubeconform"
|
||||
brew "kubernetes-cli"
|
||||
brew "kustomize"
|
||||
|
||||
@@ -57,7 +57,6 @@ tasks:
|
||||
- fluxcd/flux2?as=flux&type=script
|
||||
- getsops/sops?as=sops&type=script
|
||||
- jqlang/jq?as=jq&type=script
|
||||
- k0sproject/k0sctl?as=k0sctl&type=script
|
||||
- kubernetes-sigs/kustomize?as=kustomize&type=script
|
||||
- siderolabs/talos?as=talosctl&type=script
|
||||
- yannh/kubeconform?as=kubeconform&type=script
|
||||
|
||||
Reference in new issue
Block a user