ingresscontroller

by tjungbauer

Helm chartv1.0.20Apache-2.0Verified publisher

Configures the IngressController object.

About this chart

ingresscontroller

Description

Configures the IngressController object.

This Helm Chart configures the IngressController and can set a replica, nodeSelector and tolerations.

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/tpl~1.0.31

It is best used with a full GitOps approach such as Argo CD does. For example, https://github.com/tjungbauer/openshift-clusterconfig-gitops (see folder cluster/management-cluster/ingresscontroller)

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/ingresscontroller

Values

KeyTypeDefaultDescription
ingresscontrollerslist[{"additionalAnnotations":{},"additionalLabels":{},"annotations":{},"defaultCertificate":"my-certificate","domain":"mydomain.com","enabled":true,"endpointPublishingStrategy":{"hostNetwork":{"httpPort":7444,"httpsPort":7443,"statsPort":7936},"type":"HostNetwork"},"name":"default","namespaceSelector":{"matchExpressions":[{"key":"myenvironment","operator":"NotIn","values":["false"]}]},"nodePlacement":{"nodeSelector":{"key":"node-role.kubernetes.io/infra","value":""},"tolerations":[{"effect":"NoSchedule","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"},{"effect":"NoExecute","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"}]},"replicas":3,"routeAdmission":{"namespaceOwnership":"Strict","wildcardPolicy":"WildcardsDisallowed"},"syncwave":10,"tlsSecurityProfile":{"custom":{"ciphers":["ECDHE-ECDSA-CHACHA20-POLY1305","ECDHE-RSA-CHACHA20-POLY1305","ECDHE-RSA-AES128-GCM-SHA256","ECDHE-ECDSA-AES128-GCM-SHA256"],"minTLSVersion":"VersionTLS12"},"type":"Custom"}}]Define ingressControllers Multiple might be defined.
ingresscontrollers[0]object{"additionalAnnotations":{},"additionalLabels":{},"annotations":{},"defaultCertificate":"my-certificate","domain":"mydomain.com","enabled":true,"endpointPublishingStrategy":{"hostNetwork":{"httpPort":7444,"httpsPort":7443,"statsPort":7936},"type":"HostNetwork"},"name":"default","namespaceSelector":{"matchExpressions":[{"key":"myenvironment","operator":"NotIn","values":["false"]}]},"nodePlacement":{"nodeSelector":{"key":"node-role.kubernetes.io/infra","value":""},"tolerations":[{"effect":"NoSchedule","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"},{"effect":"NoExecute","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"}]},"replicas":3,"routeAdmission":{"namespaceOwnership":"Strict","wildcardPolicy":"WildcardsDisallowed"},"syncwave":10,"tlsSecurityProfile":{"custom":{"ciphers":["ECDHE-ECDSA-CHACHA20-POLY1305","ECDHE-RSA-CHACHA20-POLY1305","ECDHE-RSA-AES128-GCM-SHA256","ECDHE-ECDSA-AES128-GCM-SHA256"],"minTLSVersion":"VersionTLS12"},"type":"Custom"}}Name of the IngressController. OpenShift initial IngressController is called 'default'.
ingresscontrollers[0].additionalAnnotationsobject{}Additional annotations on the IngressController CR (merged with Argo CD sync metadata via tpl.argocdMetadata).
ingresscontrollers[0].additionalLabelsobject{}Additional labels on the IngressController CR.
ingresscontrollers[0].annotationsobject{}DEPRECATED: Use additionalAnnotations instead. Kept for backwards compatibility. For example to enable HTTP/2 add the following: ingress.operator.openshift.io/default-enable-http2: true
ingresscontrollers[0].defaultCertificatestringN/AThe name of the secret that stores the certificate information for the IngressController
ingresscontrollers[0].domainstringN/Adomain is a DNS name serviced by the ingress controller and is used to configure multiple features: * For the LoadBalancerService endpoint publishing strategy, domain is used to configure DNS records. See endpointPublishingStrategy. * When using a generated default certificate, the certificate will be valid for domain and its subdomains. See defaultCertificate. * The value is published to individual Route statuses so that end-users know where to target external DNS records. domain must be unique among all IngressControllers, and cannot be updated. If empty, defaults to ingress.config.openshift.io/cluster .spec.domain.
ingresscontrollers[0].enabledboolfalseEnable the configuration
ingresscontrollers[0].endpointPublishingStrategyobjectN/AendpointPublishingStrategy is used to publish the ingress controller endpoints to other networks, enable load balancer integrations, etc. If unset, the default is based on infrastructure.config.openshift.io/cluster .status.platform: AWS: LoadBalancerService (with External scope) Azure: LoadBalancerService (with External scope) GCP: LoadBalancerService (with External scope) IBMCloud: LoadBalancerService (with External scope) AlibabaCloud: LoadBalancerService (with External scope) Libvirt: HostNetwork Any other platform types (including None) default to HostNetwork. endpointPublishingStrategy cannot be updated.
ingresscontrollers[0].namespaceSelectorobjectN/AnamespaceSelector is used to filter the set of namespaces serviced by the ingress controller. This is useful for implementing shards. If unset, the default is no filtering.
ingresscontrollers[0].nodePlacementobjectemptyBind IngressController to specific nodes Here as example for Infrastructure nodes.
ingresscontrollers[0].nodePlacement.tolerationslist[{"effect":"NoSchedule","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"},{"effect":"NoExecute","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"}]Tolerations, required if the nodes are tainted.
ingresscontrollers[0].replicasint2Number of replicas for this IngressController
ingresscontrollers[0].routeAdmissionobjectN/ArouteAdmission defines a policy for handling new route claims (for example, to allow or deny claims across namespaces).
ingresscontrollers[0].routeAdmission.namespaceOwnershipstringN/Anamespaces should be handled. Value must be one of: Strict: Do not allow routes in different namespaces to claim the same host. InterNamespaceAllowed: Allow routes to claim different paths of the same host name across namespaces. If empty, the default is Strict.
ingresscontrollers[0].routeAdmission.wildcardPolicystringN/AwildcardPolicy describes how routes with wildcard policies should be handled for the ingress controller. Note: Updating WildcardPolicy from WildcardsAllowed to WildcardsDisallowed will cause admitted routes with a wildcard policy of Subdomain to stop working. These routes must be updated to a wildcard policy of None to be readmitted by the ingress controller. WildcardPolicy supports WildcardsAllowed and WildcardsDisallowed values. If empty, defaults to "WildcardsDisallowed".
ingresscontrollers[0].syncwaveint10Syncwave for Argo CD
ingresscontrollers[0].tlsSecurityProfileobjectN/AtlsSecurityProfile specifies settings for TLS connections for ingresscontrollers. If unset, the default is based on the apiservers.config.openshift.io/cluster resource. Note that when using the Old, Intermediate, and Modern profile types, the effective profile configuration is subject to change between releases.
ingresscontrollers[0].tlsSecurityProfile.typestringN/Atype is one of Old, Intermediate, Modern or Custom. Custom provides the ability to specify individual TLS security profile parameters. Old, Intermediate and Modern are TLS security profiles based on: https://wiki.mozilla.org/Security/Server_Side_TLS#Recommended_configurations The profiles are intent based, so they may change over time as new ciphers are developed and existing ciphers are found to be insecure. Depending on precisely which ciphers are available to a process, the list may be reduced. Note that the Modern profile is currently not supported because it is not yet well adopted by common software libraries.

Example values

---
---
# -- Define ingressControllers
# Multiple might be defined.
ingresscontrollers:
    # -- Name of the IngressController. OpenShift initial IngressController is called 'default'.
  - name: default

    # -- Enable the configuration
    # @default -- false
    enabled: true

    # -- Number of replicas for this IngressController
    # @default -- 2
    replicas: 3

    # -- Bind IngressController to specific nodes
    # Here as example for Infrastructure nodes.
    # @default -- empty
    nodePlacement:

      # NodeSelector that shall be used.
      nodeSelector:
        key: node-role.kubernetes.io/infra
        value: ''

      # -- Tolerations, required if the nodes are tainted.
      tolerations:
        - effect: NoSchedule
          key: node-role.kubernetes.io/infra
          operator: Equal
          value: reserved
        - effect: NoExecute
          key: node-role.kubernetes.io/infra
          operator: Equal
          value: reserved

Installing the Chart

To install the chart with the release name my-release:

helm install my-release tjungbauer/<chart-name>>

The command deploys the chart on the Kubernetes cluster in the default configuration.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy ingresscontroller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ingresscontroller on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartingresscontroller is pinned at v1.0.20 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply