11 lines
240 B
Bash
Executable File
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
|