...
| Code Block | ||||
|---|---|---|---|---|
| ||||
$ git clone https://github.com/nginxinc/kubernetes-ingress/ $ cd kubernetes-ingress/deployments $ git checkout v1.1011.13 |
Before continuing, let's stop for a moment, because we need to make some small changes to the files in the folder we just cloned from the GitHub repo. The files in question are located here:
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: cafe-ingress spec: # tls: # Let's ignore # - hosts: # and comment # - cafe.example.com # these lines # secretName: cafe-secret # for the moment rules: - host: cafe.example.com http: paths: - path: /tea # Use cafe.example.com/tea to target "tea" services backendpathType: Prefix serviceNamebackend: tea-svc # Enter the service name: servicePort: 80 name: tea-svc # Enter the portservice number name port: number: 80 # Enter the port number on which the service is listening - path: /coffee # Use cafe.example.com/coffee to target "coffee" services pathType: Prefix backend: service: serviceName name: coffee-svc # Enter the service name servicePort: 80port: number: 80 # Enter the port number on which the service is listening |
...