init
This commit is contained in:
10
Cluster/2-add-config.sh
Executable file
10
Cluster/2-add-config.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
Reference in New Issue
Block a user