Editing
Contour Ingress Controller
(section)
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.
Anti-spam check. Do
not
fill this in!
== Creating Ingresses to publish access to Services == The whole point of a [https://kubernetes.io/docs/concepts/services-networking/ingress/ kubernetes ingress] (and the newer [https://projectcontour.io/docs/master/httpproxy/ HTTPProxy] that is part of the Contour package) is to enable access to kubernetes services outside of the cluster. The Service can be of any type. All that needs to be done is to create an Ingress in the same namespace as the Service, referencing the service by name and matching the port as specified in the Service. A simple example Service: apiVersion: v1 kind: Service metadata: name: httpbin spec: ports: - port: 8080 protocol: TCP targetPort: 8080 selector: app: httpbin ... and the corresponding Ingress: apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: httpbin spec: rules: - host: httpbin.davecheney.com http: paths: - backend: serviceName: httpbin servicePort: 8080 Note that the serviceName and servicePort match those values in the Service specification. The 'spec.rules.host' parameter is the hostname that will trigger this ingress when a HTTP/HTTPS request arrives. This definition of an ingress will support unencrypted HTTP.
Summary:
Please note that all contributions to WilliamsNet Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WilliamsNet Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Commons
Architecture
How-To
Systems
Hardware
SysAdmin
Kubernetes
OpenSearch
Special
Pages to create
All pages
Recent changes
Random page
Help about MediaWiki
Formatting Help
Tools
What links here
Related changes
Special pages
Page information