I have created ingrees controller using documentation provided by the Typhoon distribution.
kubectl create -R -f typhoon/addons/nginx-ingress/digital-ocean/
Next using deployment:
kubectl run nginx --image=nginx --replicas=2 --port=80
Exposing by service:
kubectl expose deployment nginx --name=nginx --port=80 --target-port=80
and next configuring ingress using configuration below:
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: nginx annotations: ingress.kubernetes.io/rewrite-target: / spec: rules: - host: in.cloud.example.com http: paths: - path: / backend: serviceName: nginx servicePort: 80
When I tried to access page using browser or curl always end up with:
default backend - 404
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!