upgrade linkerd

This commit is contained in:
marcel-dempers 2024-11-17 19:44:04 +11:00
parent 73c507ad75
commit 5694ff69f1
4 changed files with 15806 additions and 3565 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -89,20 +89,20 @@ export KUBE_EDITOR="nano"
#test cluster access: #test cluster access:
/work # kubectl get nodes /work # kubectl get nodes
NAME STATUS ROLES AGE VERSION NAME STATUS ROLES AGE VERSION
linkerd-control-plane Ready master 26m v1.19.1 linkerd-control-plane Ready control-plane 40m v1.30.4
``` ```
## Linkerd CLI ## Linkerd CLI
Lets download the `linkerd` command line tool <br/> Lets download the `linkerd` command line tool <br/>
I grabbed the `edge-20.10.1` release using `curl` I grabbed the `edge-24.11.3` release using `curl`
You can go to the [releases](https://github.com/linkerd/linkerd2/releases/tag/edge-20.10.1) page to get it You can go to the [releases](https://github.com/linkerd/linkerd2/releases/tag/edge-24.11.3) page to get it
``` ```
curl -L -o linkerd https://github.com/linkerd/linkerd2/releases/download/edge-20.10.1/linkerd2-cli-edge-20.10.1-linux-amd64 curl -L -o linkerd https://github.com/linkerd/linkerd2/releases/download/edge-24.11.3/linkerd2-cli-edge-24.11.3-linux-amd64
chmod +x linkerd && mv ./linkerd /usr/local/bin/ chmod +x linkerd && mv ./linkerd /usr/local/bin/
linkerd --help linkerd --help
@ -120,13 +120,16 @@ linkerd check --pre
## Get the YAML ## Get the YAML
``` ```
linkerd install > ./kubernetes/servicemesh/linkerd/manifest/linkerd-edge-20.10.1.yaml # install CRDs first
linkerd install --crds > ./kubernetes/servicemesh/linkerd/manifest/linkerd-edge-24.11.3-crds.yaml
linkerd install > ./kubernetes/servicemesh/linkerd/manifest/linkerd-edge-24.11.3.yaml
``` ```
## Install Linkerd ## Install Linkerd
``` ```
kubectl apply -f ./kubernetes/servicemesh/linkerd/manifest/linkerd-edge-20.10.1.yaml kubectl apply -f ./kubernetes/servicemesh/linkerd/manifest/linkerd-edge-24.11.3-crds.yaml
kubectl apply -f ./kubernetes/servicemesh/linkerd/manifest/linkerd-edge-24.11.3.yaml
``` ```
Let's wait until all components are running Let's wait until all components are running
@ -144,10 +147,11 @@ linkerd check
## The dashboard ## The dashboard
Let's access the `linkerd` dashboard via `port-forward` To access the `linkerd` dashboard, we need to install the viz extension
``` ```
kubectl -n linkerd port-forward svc/linkerd-web 8084 linkerd viz install | kubectl apply -f -
kubectl -n linkerd-viz port-forward svc/web 8084
``` ```
# Mesh our video catalog services # Mesh our video catalog services
@ -181,7 +185,7 @@ kubectl get deploy playlists-db -o yaml | linkerd inject - | kubectl apply -f -
kubectl get deploy videos-api -o yaml | linkerd inject - | kubectl apply -f - kubectl get deploy videos-api -o yaml | linkerd inject - | kubectl apply -f -
kubectl get deploy videos-db -o yaml | linkerd inject - | kubectl apply -f - kubectl get deploy videos-db -o yaml | linkerd inject - | kubectl apply -f -
kubectl get deploy videos-web -o yaml | linkerd inject - | kubectl apply -f - kubectl get deploy videos-web -o yaml | linkerd inject - | kubectl apply -f -
kubectl -n ingress-nginx get deploy nginx-ingress-controller -o yaml | linkerd inject - | kubectl apply -f - kubectl -n ingress-nginx get deploy ingress-nginx-controller -o yaml | linkerd inject - | kubectl apply -f -
``` ```