service mesh
1. Installing Istio:
curl -L https://istio.io/download | ISTIO_VERSION=1.13.2 sh -
cd istio-1.13.2
export PATH=$PWD/bin:$PATHistioctl install2. Deploying an Application:
# backend-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
spec:
replicas: 1
selector:
matchLabels:
app: backend
template:
metadata:
labels:
app: backend
spec:
containers:
- name: backend
image: my-backend-image
ports:
- containerPort: 8080
# backend-service.yaml
apiVersion: v1
kind: Service
metadata:
name: backend
spec:
selector:
app: backend
ports:
- protocol: TCP
port: 8080