Add ingress status update functionality to support various deployment modes
- Introduced `ingressStatus` configuration in Helm values to enable status updates and customize deployment modes (auto, daemonset, nodeport, clusterip). - Implemented logic in the processor to detect deployment mode, retrieve ingress addresses, and update ingress status dynamically. - Updated Kubernetes manifests to grant required permissions for `ingresses/status` operations and pass necessary environment variables for configuration. - Adjusted Helm templates and associated Kubernetes examples to reflect the new ingress status update capability.
This commit is contained in:
parent
c8f8320cfe
commit
542fab1607
8 changed files with 312 additions and 37 deletions
|
|
@ -30,7 +30,7 @@ rules:
|
|||
resources:
|
||||
# - configmaps
|
||||
# - endpoints
|
||||
# - nodes
|
||||
- nodes
|
||||
- pods
|
||||
- services
|
||||
- namespaces
|
||||
|
|
@ -44,19 +44,18 @@ rules:
|
|||
- "networking.k8s.io"
|
||||
resources:
|
||||
- ingresses
|
||||
# - ingresses/status
|
||||
- ingresses/status
|
||||
- ingressclasses
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
# - apiGroups:
|
||||
# - "extensions"
|
||||
# - "networking.k8s.io"
|
||||
# resources:
|
||||
# - ingresses/status
|
||||
# verbs:
|
||||
# - update
|
||||
- apiGroups:
|
||||
- "networking.k8s.io"
|
||||
resources:
|
||||
- ingresses/status
|
||||
verbs:
|
||||
- patch
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
|
|
@ -170,6 +169,16 @@ spec:
|
|||
value: DEBUG
|
||||
- name: CERTBOT_LOG_LEVEL
|
||||
value: DEBUG
|
||||
- name: POD_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: EASYHAPROXY_UPDATE_INGRESS_STATUS
|
||||
value: "true"
|
||||
- name: EASYHAPROXY_DEPLOYMENT_MODE
|
||||
value: "auto"
|
||||
- name: EASYHAPROXY_STATUS_UPDATE_INTERVAL
|
||||
value: "30"
|
||||
---
|
||||
# Source: easyhaproxy/templates/ingressclass.yaml
|
||||
apiVersion: networking.k8s.io/v1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue