Difference between revisions of "Minikube: Penggunaan Ambassador Ingress Controller"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://minikube.sigs.k8s.io/docs/tutorials/ambassador_ingress_controller/ minikube addons enable ambassador minikube tunnel kubectl get service ambassador -n...")
 
 
Line 42: Line 42:
  
 
  http://192.168.99.100:30687/hello/
 
  http://192.168.99.100:30687/hello/
 +
 +
 +
==Pranala Menarik==
 +
 +
* [[minikube]]

Latest revision as of 10:42, 20 October 2020

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/


Pranala Menarik