Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivsonv/service-mesh-with-istio
https://github.com/ivsonv/service-mesh-with-istio
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ivsonv/service-mesh-with-istio
- Owner: ivsonv
- Created: 2024-05-07T22:16:01.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-11T03:56:53.000Z (8 months ago)
- Last Synced: 2024-05-12T01:28:11.508Z (8 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Configurations
## k3d
k3d is a lightweight wrapper to run k3s (Rancher Lab’s minimal Kubernetes distribution) in docker.
- https://k3d.ioMacOs
```
brew install k3d
```Creating cluster
```
- k3d cluster create -p 8000:30000 --agents 2
- kubectl config use-context k3d-k3s-default
- kubectl get nodes
```# Istio
- https://istio.io/latest/docs/setup/getting-started/MacOs
```
- curl -L https://istio.io/downloadIstio | sh -
- istionctl install -y
- kubectl get pods -n istio-system
- kubectl get svc -n istio-system
```# Addons
- https://github.com/istio/istio/tree/release-1.21/samples/addonsNOTE: Wait a moment, as the first command may take a while to apply
```
- kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.21/samples/addons/prometheus.yaml
- kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.21/samples/addons/kiali.yaml
- kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.21/samples/addons/jaeger.yaml
- kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.21/samples/addons/grafana.yaml
```# Terminal commands
```
- kubectl label namespace default istio-injection=enabled --overwrite (proxys in pods - ready 2/2)
- istioctl dashboard kiali
- while true; do curl http://localhost:8000; echo; sleep 0.5; done; (hack)
```- Consistent-hash
Maintaining the request based on the header, cookies, ip```
- kubectl exec -it POD_NAME -- bash
- curl --header "x-user: xxx" http://nginx-service:8000
```