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 5: | Line 5: | ||
* https://kind.sigs.k8s.io/docs/user/ingress/ | * https://kind.sigs.k8s.io/docs/user/ingress/ | ||
* https://docs.okd.io/latest/rest_api/network_apis/ingress-networking-k8s-io-v1.html | * https://docs.okd.io/latest/rest_api/network_apis/ingress-networking-k8s-io-v1.html | ||
+ | |||
* <code>[[helm install my-release ingress-nginx/ingress-nginx]]</code> | * <code>[[helm install my-release ingress-nginx/ingress-nginx]]</code> | ||
− | |||
− | |||
− | |||
− | + | ||
+ | rules: [ [[http:]] | [[hosts:]] ] | ||
== Official examples == | == Official examples == | ||
− | + | [[apiVersion: networking.k8s.io/v1]] | |
+ | [[kind:]] Ingress | ||
+ | metadata: | ||
+ | name: minimal-ingress | ||
+ | [[annotations:]] | ||
+ | [[nginx.ingress.kubernetes.io]]/rewrite-target: / | ||
+ | spec: | ||
+ | [[ingressClassName]]: nginx-example | ||
+ | rules: | ||
+ | - http: | ||
+ | paths: | ||
+ | - path: /testpath | ||
+ | pathType: Prefix | ||
+ | backend: | ||
+ | service: | ||
+ | name: test | ||
+ | port: | ||
+ | number: 80 | ||
https://kind.sigs.k8s.io/docs/user/ingress/ | https://kind.sigs.k8s.io/docs/user/ingress/ | ||
− | apiVersion: | + | apiVersion: networking.k8s.io/v1 |
kind: Ingress | kind: Ingress | ||
metadata: | metadata: | ||
Line 29: | Line 45: | ||
path: /foo(/|$)(.*) | path: /foo(/|$)(.*) | ||
backend: | backend: | ||
− | + | service: | |
name: foo-service | name: foo-service | ||
port: | port: | ||
Line 40: | Line 56: | ||
port: | port: | ||
number: 8080 | number: 8080 | ||
− | |||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
− | + | [[apiVersion]]: extensions/v1beta1 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[apiVersion]]: | ||
[[kind:]] Ingress | [[kind:]] Ingress | ||
[[metadata:]] | [[metadata:]] | ||
Line 72: | Line 68: | ||
paths: | paths: | ||
- backend: | - backend: | ||
− | + | serviceName: foo | |
servicePort: 8080 | servicePort: 8080 | ||
path: / | path: / | ||
− | + | ||
− | apiVersion: [[networking.k8s.io/ | + | apiVersion: [[networking.k8s.io/v1beta1]] |
kind: Ingress | kind: Ingress | ||
metadata: | metadata: | ||
Line 93: | Line 89: | ||
servicePort: 80 | servicePort: 80 | ||
path: / | path: / | ||
+ | # This section is only required if TLS is to be enabled for the Ingress | ||
+ | [[tls:]] | ||
+ | - hosts: | ||
+ | - www.example.com | ||
+ | [[secretName:]] example-tls | ||
− | |||
− | + | .../... | |
− | + | status: | |
− | + | [[loadBalancer:]] | |
+ | ingress: | ||
+ | - hostname: a324242432.elb.ap-southeast-1.amazonaws.com | ||
+ | .../... | ||
== Errors == | == Errors == | ||
Line 112: | Line 115: | ||
* <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> | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: