Created
June 24, 2020 22:29
-
-
Save medyagh/adf34e171ad0396c84b942f695399014 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./out/minikube start --driver=docker && ./out/minikube addons enable ingress | |
Create example-ingress.yaml from the following file: | |
``` | |
apiVersion: networking.k8s.io/v1beta1 # for versions before 1.14 use extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: example-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
spec: | |
rules: | |
- host: hello-world.info | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: web | |
servicePort: 8080 | |
``` | |
kubectl rollout status deployment ingress-nginx-controller -n kube-system && kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0 && kubectl expose deployment web --type=NodePort --port=8080 && kubectl ~/example-ingress.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment