Using Application Load Balancer
Integrate with ALB
Deploy a ALB
Step 1: Create Deployment, Service type NodePort
kubectl create deployment httpbin --image=mccutchen/go-httpbin
kubectl expose deployment httpbin --name=httpbin-service --port=80 --target-port=8080 --type=NodePortStep 2: Check the Deployment and Service information just deployed
Step 3: Create Ingress Resource
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx-ingress
spec:
ingressClassName: "vngcloud"
defaultBackend:
service:
name: httpbin-service
port:
number: 80
rules:
- http:
paths:
- path: /4
pathType: Exact
backend:
service:
name: httpbin-service
port:
number: 80Last updated

