Files
Kubernetes-deploy/Cluster/2-add-config.sh
Vassiliy Yegorov c3a2d72a52 fix
2021-05-23 10:43:57 +07:00

11 lines
240 B
Bash
Executable File

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