September 2018
Intermediate to advanced
764 pages
20h 6m
English
Now that our Ingress controller is running, we are ready to deploy our Ingress resource. Create a new manifest file at ./manifests/backend/ingress.yaml with the following content:
apiVersion: extensions/v1beta1kind: Ingressmetadata: name: test-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: /spec: rules: - host: api.hobnob.social http: paths: - backend: serviceName: backend servicePort: 8080 - host: docs.hobnob.social http: paths: - backend: serviceName: backend servicePort: 8100
The important parts lies at .spec.rules. This is a list of rules that checks the request's host and path, and if it matches, proxies the request to a specified Service.
In our example, we are matching any requests for ...
Read now
Unlock full access