Editing Kind: Ingress
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
* <code>[[helm install my-release ingress-nginx/ingress-nginx]]</code> | * <code>[[helm install my-release ingress-nginx/ingress-nginx]]</code> | ||
* <code>[[minikube addons enable ingress]]</code> | * <code>[[minikube addons enable ingress]]</code> | ||
− | * | + | * [[spec.rules.host]] |
− | * | + | * rules: [ [[http:]] | [[hosts:]] ] |
− | |||
− | |||
== Official examples == | == Official examples == | ||
Line 29: | Line 27: | ||
path: /foo(/|$)(.*) | path: /foo(/|$)(.*) | ||
backend: | backend: | ||
− | + | service: | |
name: foo-service | name: foo-service | ||
port: | port: | ||
Line 40: | Line 38: | ||
port: | port: | ||
number: 8080 | number: 8080 | ||
− | |||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
=== with tls and issuer annotation for [[cert-manager]] === | === with tls and issuer annotation for [[cert-manager]] === | ||
− | + | apiVersion: networking.k8s.io/v1 | |
+ | kind: Ingress | ||
+ | metadata: | ||
+ | name: kuard | ||
+ | annotations: | ||
+ | [[cert-manager.io/issuer]]: "letsencrypt-staging" | ||
+ | |||
+ | spec: | ||
+ | ingressClassName: nginx | ||
+ | [[tls:]] | ||
+ | - hosts: | ||
+ | - example.example.com | ||
+ | secretName: quickstart-example-tls | ||
+ | rules: | ||
+ | - host: example.example.com | ||
+ | http: | ||
+ | paths: | ||
+ | - path: / | ||
+ | pathType: Prefix | ||
+ | backend: | ||
+ | service: | ||
+ | name: kuard | ||
+ | port: | ||
+ | number: 80 | ||
=== With tls === | === With tls === | ||
Line 97: | Line 114: | ||
The Ingress "youingress" is invalid: [[spec.rules]][0].http.paths[0].backend: Required value: port name or number is required | The Ingress "youingress" is invalid: [[spec.rules]][0].http.paths[0].backend: Required value: port name or number is required | ||
− | |||
− | |||
== Errors == | == Errors == | ||
Line 112: | Line 127: | ||
* <code>[[cattle.io/creator: norman]]</code> | * <code>[[cattle.io/creator: norman]]</code> | ||
* <code>[[.local]]</code> | * <code>[[.local]]</code> | ||
− | * | + | * [[Address:]] |
* <code>[[kubectl apply -f ingress.yaml]]</code> | * <code>[[kubectl apply -f ingress.yaml]]</code> | ||
− | * | + | * [[Ingress-nginx-controller ConfigMap]] |
− | * | + | * [[IngressSpec.spec.tls]] |
− | |||
− | |||
== See also == | == See also == |
Advertising: