Helm

Install and search a char on the repo

helm repo add aws-ebs-csi-driver https://kubernetes-sigs.github.io/aws-ebs-csi-driver
helm repo update
helm search repo aws-ebs-csi-driver -l
helm upgrade --install aws-ebs-csi-driver --namespace kube-system aws-ebs-csi-driver/aws-ebs-csi-driver

https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/install.md

List all installed helm

helm list --all --all-namespaces
helm ls --all-namespaces
helm ls -A

linkerd

Install

helm repo add linkerd https://helm.linkerd.io/stable
helm install linkerd-crds -n linkerd --create-namespace linkerd/linkerd-crds
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 -n linkerd-viz --create-namespace linkerd/linkerd-viz
curl -sL https://run.linkerd.io/install | sh
export PATH=$PATH:~/.linkerd2/bin
linkerd viz dashboard

https://linkerd.io/2.11/tasks/install-helm/#customizing-the-namespace-in-the-stable-release

Uninstall

helm uninstall linkerd-viz -n linkerd-viz
helm uninstall linkerd-control-plane -n linkerd
helm uninstall linkerd-crds -n linkerd
kubectl delete ns linkerd
kubectl delete ns linkerd-viz
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
kubectl delete apiservices.apiregistration.k8s.io v1alpha1.tap.linkerd.io
kubectl delete clusterrolebindings.rbac.authorization.k8s.io linkerd-linkerd-viz-metrics-api  linkerd-linkerd-viz-tap-auth-delegator  linkerd-linkerd-viz-prometheus  linkerd-tap-injector  linkerd-linkerd-viz-web-check    linkerd-linkerd-viz-web-api  linkerd-linkerd-viz-web-admin   linkerd-linkerd-viz-tap
kubectl delete clusterroles.rbac.authorization.k8s.io linkerd-linkerd-viz-prometheus linkerd-tap-injector  linkerd-linkerd-viz-web-check  linkerd-linkerd-viz-web-api  linkerd-linkerd-viz-tap-admin  linkerd-linkerd-viz-tap  linkerd-linkerd-viz-metrics-api
kubectl delete mutatingwebhookconfigurations.admissionregistration.k8s.io linkerd-tap-injector-webhook-config
kubectl delete rolebindings.rbac.authorization.k8s.io linkerd-linkerd-viz-tap-auth-reader
kubectl describe customresourcedefinitions.apiextensions.k8s.io httproutes.gateway.networking.k8s.io | grep -i linkerd

Diagnostic

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
linkerd viz install > linkerd.viz.yaml

List all resources managed by the helm

kubectl get all --all-namespaces -l='app.kubernetes.io/managed-by=Helm'

https://stackoverflow.com/a/65774255

List all resources in all namespaces

kubectl api-resources --verbs=list -o name | xargs -n 1 kubectl get
vim res.sh
for i in $(kubectl api-resources --verbs=list -o name | sort | uniq); do
    echo "*************"
    echo "Resource:" $i
    kubectl get $i -A -o wide --sort-by=.metadata.creationTimestamp | tac
  done
chmod +x res.sh
./res.sh