Examples
Sample applications and use cases
Podinfo App
Deploy a sample application with Istio ingress.
# Deploy
kubectl apply -f examples/podinfo-app.yaml
# Get Ingress IP
INGRESS_IP=$(kubectl get svc -n istio-system istio-ingressgateway \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}')
# Add to /etc/hosts
echo "$INGRESS_IP podinfo.local" | sudo tee -a /etc/hosts
# Test
curl http://podinfo.local
NFS Persistent Volume
Use NFS storage for persistent data.
# Deploy
kubectl apply -f examples/nfs-pv-pvc.yaml
# Check resources
kubectl get pv
kubectl get pvc -n nfs-demo
kubectl get pods -n nfs-demo
Httpbin (Istio sample)
# Create namespace with Istio injection
kubectl create namespace demo
kubectl label namespace demo istio-injection=enabled
# Deploy httpbin
kubectl apply -n demo -f https://raw.githubusercontent.com/istio/istio/release-1.28/samples/httpbin/httpbin.yaml
# Test
curl http://httpbin.local/headers
Accessing Grafana
# Get Ingress IP
INGRESS_IP=$(kubectl get svc -n istio-system istio-ingressgateway \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}')
# Add to /etc/hosts
echo "$INGRESS_IP grafana.local" | sudo tee -a /etc/hosts
# Access
open http://grafana.local
Credentials: admin / admin123