Use helm_apply and misc fixes

This commit is contained in:
Jonas Juselius
2020-11-06 15:46:25 +01:00
parent 5caf819d77
commit 36b75b56fc
13 changed files with 67 additions and 58 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
TOP="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
namespace=kube-system
@@ -7,8 +8,13 @@ charts=(
kube-proxy.yaml
)
cd $TOP
. ../config.sh
kubectl_apply_files $namespace "${charts[@]}"
export_vars
kubectl delete secret cluster-ca -n $namespace
kubectl create secret tls cluster-ca \
--namespace=$namespace --cert=$initca/ca.pem --key=$initca/ca-key.pem