<commit_before># kubectl completion
echo "source <(kubectl completion zsh)" >> ~/.zshrc

# add k8s dashboard
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl proxy
TOKEN=$(kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}')
kubectl config set-credentials docker-for-desktop --token="${TOKEN}"
# http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

# check k8s installation
kubectl version
kubectl get nodes
kubectl cluster-info
kubectl logs <pod-name> -f

# access k8s service 
kubectl run hello-world --replicas=2 --labels="run=load-balancer-example" --image=anjia0532/google-samples.node-hello:1.0 --port=8080
kubectl get deployments hello-world
kubectl describe deployments hello-world
kubectl get replicasets
kubectl describe replicasets
kubectl expose deployment hello-world --type=NodePort --name=example-service
# kubectl expose deployment hello-world --type=LoadBalancer --name=example-service<commit_msg>update k8s script<commit_after># kubectl completion
echo "source <(kubectl completion zsh)" >> ~/.zshrc

# add k8s dashboard
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl proxy
TOKEN=$(kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}')
kubectl config set-credentials docker-for-desktop --token="${TOKEN}"
# http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

# check k8s installation
kubectl version
kubectl get nodes
kubectl cluster-info
kubectl logs <pod-name> -f

# access k8s service 
kubectl run hello-world --replicas=2 --labels="run=load-balancer-example" --image=anjia0532/google-samples.node-hello:1.0 --port=8080
kubectl get deployments hello-world
kubectl describe deployments hello-world
kubectl get replicasets
kubectl describe replicasets
kubectl expose deployment hello-world --type=NodePort --name=example-service
# kubectl expose deployment hello-world --type=LoadBalancer --name=example-service
kubectl scale deployment hello-world --replicas=3
{'fraction_non_alphanumeric': 0.11839708561020036, 'fraction_numerical': 0.023679417122040074, 'mean_word_length': 5.558208955223881, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5848068', 'n_tokens_mistral': 778, 'n_tokens_neox': 744, 'n_words': 172}