mirror of
https://github.com/rancher/rke.git
synced 2025-09-20 19:08:25 +00:00
Nit fixes for ingress
This commit is contained in:
21
cluster.yml
21
cluster.yml
@@ -134,3 +134,24 @@ private_registries:
|
|||||||
- url: registry.com
|
- url: registry.com
|
||||||
user: Username
|
user: Username
|
||||||
password: password
|
password: password
|
||||||
|
|
||||||
|
# Currently only nginx ingress provider is supported.
|
||||||
|
# To disable ingress controller, set `provider: none`
|
||||||
|
# To enable ingress on specific nodes, use the node_selector, eg:
|
||||||
|
# nodes:
|
||||||
|
# - address: example.com
|
||||||
|
# user: ubuntu
|
||||||
|
# role:
|
||||||
|
# - role
|
||||||
|
# hostname_override: node3
|
||||||
|
# internal_address: 192.168.1.6
|
||||||
|
# labels:
|
||||||
|
# app: ingress
|
||||||
|
#
|
||||||
|
# ingress:
|
||||||
|
# provider: nginx
|
||||||
|
# node_selector:
|
||||||
|
# app: ingress
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
provider: nginx
|
||||||
|
@@ -127,11 +127,11 @@ func (c *Cluster) ApplySystemAddonExcuteJob(addonJob string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cluster) deployIngress(ctx context.Context) error {
|
func (c *Cluster) deployIngress(ctx context.Context) error {
|
||||||
log.Infof(ctx, "[ingress] Setting up %s ingress controller", c.Ingress.Provider)
|
|
||||||
if c.Ingress.Provider == "none" {
|
if c.Ingress.Provider == "none" {
|
||||||
log.Infof(ctx, "[ingress] ingress controller is not defined")
|
log.Infof(ctx, "[ingress] ingress controller is not defined, skipping ingress controller")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
log.Infof(ctx, "[ingress] Setting up %s ingress controller", c.Ingress.Provider)
|
||||||
ingressConfig := ingressOptions{
|
ingressConfig := ingressOptions{
|
||||||
RBACConfig: c.Authorization.Mode,
|
RBACConfig: c.Authorization.Mode,
|
||||||
Options: c.Ingress.Options,
|
Options: c.Ingress.Options,
|
||||||
|
Reference in New Issue
Block a user