Files
Kubernetes-deploy/Cluster/2-add-config.sh
Vassiliy Yegorov 05b0d36bb3 init
2021-05-06 15:02:42 +07:00

11 lines
235 B
Bash
Executable File

#!/bin/bash
# add config file
cat kube_config_cluster.yml > ~/.kube/k8s-hls
# enable config auth
export KUBECONFIG=$(find ~/.kube -maxdepth 1 -type f -name '*' | tr "\n" ":")
# test auth to cluster
kubectl get pods --all-namespaces