nginx-ingress-operator

Nginx Ingress Operator Docker Image

用于NGINX和NGINX Plus入口控制器的NGINX入口操作器,基于Helm图表构建。

5 次收藏下载次数: 0状态:社区镜像维护者:NGINX 官方镜像仓库类型:镜像最近更新:
下载命令
点击查看

NGINX Ingress Operator

The NGINX Ingress Operator is a Kubernetes/OpenShift component which deploys and manages one or more https://github.com/nginx/kubernetes-ingress which in turn handle Ingress traffic for applications running in a cluster.

Learn more about operators in the https://kubernetes.io/docs/concepts/extend-kubernetes/operator/.

To install a specific version of the NGINX Ingress Controller with the operator, a specific version of the NGINX Ingress Operator is required.

Up until version 0.5.1, this Operator was Go based. Version 1.0.0 marks an incompatible upgrade as this release switched the Operator to being Helm-based, built from the NGINX Ingress Controller Helm chart. The configuration for the Helm chart can be seen in the NGINX Ingress Controller documentation.

The following table shows the relation between the versions of the two projects:

NGINX Ingress ControllerNGINX Ingress Operator
5.7.x3.8.0
5.6.x3.7.3
5.5.x3.6.5
5.4.x3.5.4
5.3.x3.4.4
5.2.x3.3.1
5.1.x3.2.3
5.0.x3.1.0
4.0.x3.0.1
3.7.x2.4.2
3.6.x2.3.2
3.5.x2.2.2
3.4.x2.1.2
3.3.x2.0.2
3.2.x1.5.2
3.1.x1.4.2
3.0.x1.3.1
2.4.x1.2.1
2.3.x1.1.0
2.2.x1.0.0
2.1.x0.5.1
2.0.x0.4.0
1.12.x0.3.0
1.11.x0.2.0
1.10.x0.1.0
1.9.x0.0.7
1.8.x0.0.6
1.7.x0.0.4
< 1.7.0N/A

Note: The NGINX Ingress Operator works only for NGINX Ingress Controller versions after 1.7.0.

Getting Started

  1. Install the NGINX Ingress Operator. See docs.
    NOTE: To use TransportServers as part of your NGINX Ingress Controller configuration, a GlobalConfiguration resource must be created before starting the Operator - see the notes

  2. Creating the default-server-secret.yaml is optional and it is recommended that users provide their own certificate. An example yaml for this can be found in the https://github.com/nginx/nginx-ingress-helm-operator/blob/main/examples/default-server-secret.yaml

  3. (If using OpenShift) Create the scc resource on the cluster by applying the scc.yaml file found in the resources folder of this repo:

    shell
    kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-ingress-helm-operator/main/resources/scc.yaml
    
  4. Deploy a new NGINX Ingress Controller using the NginxIngress Custom Resource:

    • Use the name of the default server secret created above for controller.defaultTLS.secret field (needs to be in the form namespace/name)
    • If using NGINX Plus:
      • Set the controller.nginxPlus to true
      • Set the controller.image.repository and controller.image.tag to the appropriate values
      • Set the controller.serviceAccount.imagePullSecretName if applicable
    • For full configuration details see the Helm documentation here.

Notes: Multiple NIC Deployments

  • Please see the NGINX Ingress Controller documentation for general information on running multiple NGINX Ingress Controllers in your cluster.
  • To run multiple NIC instances deployed by the NGINX Ingress Operator in your cluster in the same namespace, rbac.create should be set to false, and the ServiceAccount and ClusterRoleBinding need to be created independently of the deployments. Please note that controller.serviceAccount.imagePullSecretName will also be ignored in this configuration, and will need to be configured as part of the independent ServiceAccount creation.
  • The ClusterRoleBinding needs to configured to bind to the nginx-ingress-operator-nginx-ingress-admin ClusterRole.
  • See RBAC example spec for an example ServiceAccount and ClusterRoleBinding manifest.
  • To run multiple NIC instances deployed by the NGINX Ingress Operator in your cluster in any namespace but sharing an IngressClass, controller.ingressClass.name should be set to an empty string and the IngressClass resource needs to be created independently of the deployments.Please note that controller.ingressClass.setAsDefaultIngress will also be ignored in this configuration, and will need to be configured as part of the independent IngressClass creation.
  • See IngressClass example spec for an example IngressClass manifest.

Upgrades

See upgrade docs

NGINX Ingress Operator Releases

We publish NGINX Ingress Operator releases on GitHub. See our https://github.com/nginx/nginx-ingress-helm-operator/releases.

The latest stable release is https://github.com/nginx/nginx-ingress-helm-operator/releases/tag/v3.8.0. For production use, we recommend that you choose the latest stable release.

Development

It is possible to run the operator in your local machine. This is useful for testing or during development.

Run Operator locally

  1. Have access to a Kubernetes/OpenShift cluster.

  2. Apply the IC CRD:

    shell
     make install
    
  3. Run make run.

The operator will run in your local machine but will be communicating with the cluster.

Contributing

If you'd like to contribute to the project, please read our Contributing guide.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 nginx-ingress-operator 镜像标签

docker pull docker.xuanyuan.run/nginx/nginx-ingress-operator:<标签>

DockerHub 原生拉取命令

docker pull nginx/nginx-ingress-operator:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告