Minikube: Penggunaan Ambassador Ingress Controller
Jump to navigation
Jump to search
Sumber: https://minikube.sigs.k8s.io/docs/tutorials/ambassador_ingress_controller/
minikube addons enable ambassador
minikube tunnel
kubectl get service ambassador -n ambassador
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE ambassador LoadBalancer 10.108.56.81 10.108.56.81 80:30687/TCP,443:31481/TCP 24s
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4 kubectl expose deployment hello-minikube --port=8080
Edit file hello-ingress.yaml
apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: kubernetes.io/ingress.class: ambassador name: test-ingress spec: rules: - http: paths: - path: /hello/ backend: serviceName: hello-minikube servicePort: 8080
kubectl apply -f hello-ingress.yaml minikube service ambassador -n ambassador --url
http://192.168.99.100:30687
Akses web
http://192.168.99.100:30687/hello/