2021-10-16 08:46:06 +00:00
|
|
|
apiVersion: v1
|
2023-02-15 11:41:04 +00:00
|
|
|
kind: Namespace
|
2021-10-16 08:46:06 +00:00
|
|
|
metadata:
|
|
|
|
labels:
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
2021-11-28 10:37:20 +00:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
name: ingress-nginx
|
2021-10-16 08:46:06 +00:00
|
|
|
---
|
2023-02-15 11:21:46 +00:00
|
|
|
apiVersion: v1
|
|
|
|
automountServiceAccountToken: true
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- namespaces
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
- pods
|
|
|
|
- secrets
|
|
|
|
- endpoints
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- services
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- networking.k8s.io
|
|
|
|
resources:
|
|
|
|
- ingresses
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- networking.k8s.io
|
|
|
|
resources:
|
|
|
|
- ingresses/status
|
|
|
|
verbs:
|
|
|
|
- update
|
|
|
|
- apiGroups:
|
|
|
|
- networking.k8s.io
|
|
|
|
resources:
|
|
|
|
- ingressclasses
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
2023-02-15 11:41:04 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resourceNames:
|
|
|
|
- ingress-nginx-leader
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- update
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
verbs:
|
|
|
|
- create
|
2023-02-15 11:21:46 +00:00
|
|
|
- apiGroups:
|
|
|
|
- coordination.k8s.io
|
|
|
|
resourceNames:
|
|
|
|
- ingress-nginx-leader
|
|
|
|
resources:
|
|
|
|
- leases
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- update
|
|
|
|
- apiGroups:
|
|
|
|
- coordination.k8s.io
|
|
|
|
resources:
|
|
|
|
- leases
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- events
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- patch
|
|
|
|
- apiGroups:
|
|
|
|
- discovery.k8s.io
|
|
|
|
resources:
|
|
|
|
- endpointslices
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- get
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- secrets
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- create
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
- endpoints
|
|
|
|
- nodes
|
|
|
|
- pods
|
|
|
|
- secrets
|
|
|
|
- namespaces
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- coordination.k8s.io
|
|
|
|
resources:
|
|
|
|
- leases
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- services
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- networking.k8s.io
|
|
|
|
resources:
|
|
|
|
- ingresses
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- events
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- patch
|
|
|
|
- apiGroups:
|
|
|
|
- networking.k8s.io
|
|
|
|
resources:
|
|
|
|
- ingresses/status
|
|
|
|
verbs:
|
|
|
|
- update
|
|
|
|
- apiGroups:
|
|
|
|
- networking.k8s.io
|
|
|
|
resources:
|
|
|
|
- ingressclasses
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- discovery.k8s.io
|
|
|
|
resources:
|
|
|
|
- endpointslices
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- get
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- admissionregistration.k8s.io
|
|
|
|
resources:
|
|
|
|
- validatingwebhookconfigurations
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- update
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: ingress-nginx
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: ingress-nginx-admission
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: ingress-nginx-admission
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: ingress-nginx
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: ingress-nginx-admission
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: ingress-nginx-admission
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
data:
|
|
|
|
allow-snippet-annotations: "true"
|
2023-02-15 18:23:53 +00:00
|
|
|
use-proxy-protocol: "true"
|
2023-02-15 11:41:04 +00:00
|
|
|
log-format-upstream: '{"time": "$time_iso8601", "request_id": "$req_id", "remote_user": "$remote_user", "bytes_sent": $bytes_sent, "request_time": $request_time, "status": $status, "host": "$host", "request_proto": "$server_protocol", "path": "$uri", "request_query": "$args", "request_length": $request_length, "duration": $request_time,"method": "$request_method", "http_referrer": "$http_referer", "http_user_agent": "$http_user_agent", "redirect_location": "$redirect_location" }'
|
|
|
|
plugins: "redirect_location"
|
|
|
|
location-snippet: |
|
|
|
|
set $redirect_location '';
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
|
|
app.kubernetes.io/version: 1.5.1
|
|
|
|
name: ingress-nginx-controller
|
|
|
|
namespace: ingress-nginx
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
|
|
k8s.scw.cloud/ingress: nginx
|
|
|
|
k8s.scw.cloud/object: ConfigMap
|
|
|
|
k8s.scw.cloud/system: ingress
|
|
|
|
name: ingress-nginx-plugin-redirect-location
|
2023-02-15 11:51:12 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
data:
|
|
|
|
main.lua: |
|
|
|
|
local ngx = ngx
|
|
|
|
local _M = {}
|
|
|
|
function _M.header_filter()
|
|
|
|
ngx.var.redirect_location = ngx.resp.get_headers()["Location"]
|
|
|
|
end
|
|
|
|
return _M
|
2023-02-15 11:21:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
2021-10-16 08:46:06 +00:00
|
|
|
metadata:
|
|
|
|
annotations:
|
2023-02-15 18:23:53 +00:00
|
|
|
service.beta.kubernetes.io/scw-loadbalancer-proxy-protocol-v2: "true"
|
|
|
|
service.beta.kubernetes.io/scw-loadbalancer-use-hostname: "true"
|
2021-10-16 08:46:06 +00:00
|
|
|
labels:
|
2023-02-15 11:21:46 +00:00
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
2021-10-16 08:46:06 +00:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-controller
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
spec:
|
|
|
|
externalTrafficPolicy: Local
|
|
|
|
ipFamilies:
|
|
|
|
- IPv4
|
|
|
|
ipFamilyPolicy: SingleStack
|
|
|
|
ports:
|
|
|
|
- appProtocol: http
|
|
|
|
name: http
|
|
|
|
port: 80
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: http
|
|
|
|
- appProtocol: https
|
|
|
|
name: https
|
|
|
|
port: 443
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: https
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
type: LoadBalancer
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-controller-admission
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2021-10-16 08:46:06 +00:00
|
|
|
spec:
|
2023-02-15 11:21:46 +00:00
|
|
|
ports:
|
|
|
|
- appProtocol: https
|
|
|
|
name: https-webhook
|
|
|
|
port: 443
|
|
|
|
targetPort: webhook
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-controller
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
spec:
|
|
|
|
minReadySeconds: 0
|
|
|
|
revisionHistoryLimit: 10
|
2023-02-15 11:41:04 +00:00
|
|
|
replicas: 2
|
2021-10-16 08:46:06 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2023-02-15 11:21:46 +00:00
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
2021-10-16 08:46:06 +00:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2023-02-15 11:21:46 +00:00
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
2021-10-16 08:46:06 +00:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- args:
|
|
|
|
- /nginx-ingress-controller
|
2023-02-15 11:21:46 +00:00
|
|
|
- --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
|
|
|
|
- --election-id=ingress-nginx-leader
|
2021-10-16 08:46:06 +00:00
|
|
|
- --controller-class=k8s.io/ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
- --ingress-class=nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
- --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
|
2023-02-15 11:21:46 +00:00
|
|
|
- --validating-webhook=:8443
|
|
|
|
- --validating-webhook-certificate=/usr/local/certificates/cert
|
|
|
|
- --validating-webhook-key=/usr/local/certificates/key
|
2023-02-15 11:41:04 +00:00
|
|
|
- --annotations-prefix=nginx.ingress.kubernetes.io
|
|
|
|
- --watch-ingress-without-class
|
|
|
|
- --enable-metrics
|
2021-10-16 08:46:06 +00:00
|
|
|
env:
|
|
|
|
- name: POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
2023-02-15 11:21:46 +00:00
|
|
|
- name: LD_PRELOAD
|
|
|
|
value: /usr/local/lib/libmimalloc.so
|
2023-09-22 09:01:02 +00:00
|
|
|
image: registry.k8s.io/ingress-nginx/controller:v1.9.0@sha256:c15d1a617858d90fb8f8a2dd60b0676f2bb85c54e3ed11511794b86ec30c8c60
|
2021-10-16 08:46:06 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
2023-02-15 11:21:46 +00:00
|
|
|
lifecycle:
|
|
|
|
preStop:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /wait-shutdown
|
2021-11-28 11:38:35 +00:00
|
|
|
livenessProbe:
|
2023-02-15 11:21:46 +00:00
|
|
|
failureThreshold: 5
|
2021-11-28 11:38:35 +00:00
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 10254
|
|
|
|
scheme: HTTP
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
2023-02-15 11:21:46 +00:00
|
|
|
timeoutSeconds: 1
|
|
|
|
name: controller
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: http
|
|
|
|
protocol: TCP
|
|
|
|
- containerPort: 443
|
|
|
|
name: https
|
|
|
|
protocol: TCP
|
|
|
|
- containerPort: 8443
|
|
|
|
name: webhook
|
|
|
|
protocol: TCP
|
2021-10-16 08:46:06 +00:00
|
|
|
readinessProbe:
|
|
|
|
failureThreshold: 3
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 10254
|
|
|
|
scheme: HTTP
|
2023-02-15 11:21:46 +00:00
|
|
|
initialDelaySeconds: 10
|
2021-10-16 08:46:06 +00:00
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
2023-02-15 11:21:46 +00:00
|
|
|
timeoutSeconds: 1
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 90Mi
|
2021-10-16 08:46:06 +00:00
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: true
|
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_BIND_SERVICE
|
|
|
|
drop:
|
|
|
|
- ALL
|
|
|
|
runAsUser: 101
|
2021-11-28 10:37:20 +00:00
|
|
|
volumeMounts:
|
2023-02-15 11:21:46 +00:00
|
|
|
- mountPath: /usr/local/certificates/
|
|
|
|
name: webhook-cert
|
|
|
|
readOnly: true
|
2021-11-28 10:37:20 +00:00
|
|
|
- name: plugins
|
|
|
|
mountPath: /etc/nginx/lua/plugins/redirect_location
|
2023-02-15 11:21:46 +00:00
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/os: linux
|
|
|
|
serviceAccountName: ingress-nginx
|
|
|
|
terminationGracePeriodSeconds: 300
|
2021-11-28 10:37:20 +00:00
|
|
|
volumes:
|
2023-02-15 11:21:46 +00:00
|
|
|
- name: webhook-cert
|
|
|
|
secret:
|
|
|
|
secretName: ingress-nginx-admission
|
2021-11-28 10:37:20 +00:00
|
|
|
- name: plugins
|
|
|
|
configMap:
|
|
|
|
name: ingress-nginx-plugin-redirect-location
|
2023-02-15 11:21:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission-create
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission-create
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- args:
|
|
|
|
- create
|
|
|
|
- --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
|
|
|
|
- --namespace=$(POD_NAMESPACE)
|
|
|
|
- --secret-name=ingress-nginx-admission
|
|
|
|
env:
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20220916-gd32f8c343@sha256:39c5b2e3310dc4264d638ad28d9d1d96c4cbb2b2dcfb52368fe4e3c63f61e10f
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
name: create
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/os: linux
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
securityContext:
|
|
|
|
fsGroup: 2000
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 2000
|
|
|
|
serviceAccountName: ingress-nginx-admission
|
|
|
|
---
|
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission-patch
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission-patch
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- args:
|
|
|
|
- patch
|
|
|
|
- --webhook-name=ingress-nginx-admission
|
|
|
|
- --namespace=$(POD_NAMESPACE)
|
|
|
|
- --patch-mutating=false
|
|
|
|
- --secret-name=ingress-nginx-admission
|
|
|
|
- --patch-failure-policy=Fail
|
|
|
|
env:
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20220916-gd32f8c343@sha256:39c5b2e3310dc4264d638ad28d9d1d96c4cbb2b2dcfb52368fe4e3c63f61e10f
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
name: patch
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/os: linux
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
securityContext:
|
|
|
|
fsGroup: 2000
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 2000
|
|
|
|
serviceAccountName: ingress-nginx-admission
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: IngressClass
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: controller
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: nginx
|
|
|
|
spec:
|
|
|
|
controller: k8s.io/ingress-nginx
|
|
|
|
---
|
|
|
|
apiVersion: admissionregistration.k8s.io/v1
|
|
|
|
kind: ValidatingWebhookConfiguration
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: admission-webhook
|
|
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2023-02-15 11:41:04 +00:00
|
|
|
app.kubernetes.io/version: 1.5.1
|
2023-02-15 11:21:46 +00:00
|
|
|
name: ingress-nginx-admission
|
|
|
|
webhooks:
|
|
|
|
- admissionReviewVersions:
|
|
|
|
- v1
|
|
|
|
clientConfig:
|
|
|
|
service:
|
|
|
|
name: ingress-nginx-controller-admission
|
2023-02-15 11:41:04 +00:00
|
|
|
namespace: ingress-nginx
|
2023-02-15 11:21:46 +00:00
|
|
|
path: /networking/v1/ingresses
|
|
|
|
failurePolicy: Fail
|
|
|
|
matchPolicy: Equivalent
|
|
|
|
name: validate.nginx.ingress.kubernetes.io
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- networking.k8s.io
|
|
|
|
apiVersions:
|
|
|
|
- v1
|
|
|
|
operations:
|
|
|
|
- CREATE
|
|
|
|
- UPDATE
|
|
|
|
resources:
|
|
|
|
- ingresses
|
|
|
|
sideEffects: None
|