Skip to content

Commit

Permalink
docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Sep 14, 2023
1 parent d1ced32 commit eccd12c
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
45 changes: 45 additions & 0 deletions src/kubernetes/helm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,50 @@ List all installed helm

.. code-block:: bash
helm list --all --all-namespaces
helm ls --all-namespaces
helm ls -A
linkerd
-------


Install

.. code-block:: bash
helm repo add linkerd https://helm.linkerd.io/stable
helm install linkerd-crds linkerd/linkerd-crds -n linkerd --create-namespace
helm install linkerd-control-plane -n linkerd --set clusterNetworks="10.0.0.0/8\,11.0.0.0/8\,12.0.0.0/8" --set-file identityTrustAnchorsPEM=ca.crt --set-file identity.issuer.tls.crtPEM=issuer.crt --set-file identity.issuer.tls.keyPEM=issuer.key linkerd/linkerd-control-plane
helm install linkerd-viz linkerd/linkerd-viz
curl -sL https://run.linkerd.io/install | sh
Uninstall

.. code-block:: bash
helm uninstall linkerd-viz
helm uninstall linkerd-control-plane -n linkerd
helm uninstall linkerd-crds -n linkerd
kubectl delete ns linkerd
linkerd viz dashboard
kubectl delete all --all -n linkerd
kubectl delete ClusterRole linkerd-linkerd-metrics-api linkerd-linkerd-prometheus linkerd-linkerd-tap linkerd-linkerd-tap-admin linkerd-linkerd-web-api linkerd-linkerd-web-check linkerd-tap-injector
linkerd-linkerd-metrics-api linkerd-linkerd-prometheus linkerd-linkerd-tap linkerd-linkerd-tap-auth-delegator linkerd-linkerd-web-admin linkerd-linkerd-web-api linkerd-linkerd-web-check linkerd-tap-injector
Diagnostic

.. code-block:: bash
linkerd check
kubectl -n linkerd logs deploy/linkerd-destination -c policy
linkerd diagnostics controller-metrics
kubectl get validatingwebhookconfigurations
kubectl get mutatingwebhookconfigurations
kubectl get ClusterRole
kubectl get ClusterRoleBinding
kubectl get -A secret
kubectl get -A cm
13 changes: 12 additions & 1 deletion src/kubernetes/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,17 @@ Kubectl debug pod
kubectl run --rm -it --restart=Never debug --image=busybox -- sh
Delete resources
****************

.. code-block:: bash
kubectl delete all --all -n example-namespace
- The first all means the common resource kinds (pods, replicasets, deployments, ...)
- The second --all means to select all resources of the selected kinds

https://stackoverflow.com/a/60585130

Delete terminating namespace
*****************************
Expand All @@ -1509,7 +1520,7 @@ Delete terminating namespace
},
kubectl proxy
# In new tab
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/my-ns/finalize
curl -k -H "Content-Type: application/json" -X PUT --data-binary @ns.json http://127.0.0.1:8001/api/v1/namespaces/my-ns/finalize
Logging and Monitoring
Expand Down
13 changes: 13 additions & 0 deletions src/linux/cmds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1567,3 +1567,16 @@ The following packages will be upgraded:
$ sudo apt-get install <list of packages kept back>
$ sudo apt-get update ; sudo apt-get dist-upgrade
Restart
-------
.. code-block:: bash
journalctl --list-boots
grep reboot /home/*/.bash_history
grep reboot /root/.bash_history
history | grep -i reboot
history | grep -i init
last reboot

0 comments on commit eccd12c

Please sign in to comment.