migrating to endpoint slice
This commit is contained in:
1 parent
3fe032eb3e
commit
d9be8be159
2 files changed
+34
-7
No files matched your search
@@ -1,15 +1,20 @@
|
||||
{{ range $prefix, $data := .Values.reverseProxy }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
apiVersion: discovery.k8s.io/v1
|
||||
kind: EndpointSlice
|
||||
metadata:
|
||||
name: "reverse-proxy-{{$prefix}}"
|
||||
subsets:
|
||||
labels:
|
||||
kubernetes.io/service-name: "reverse-proxy-{{$prefix}}"
|
||||
addressType: IPv4
|
||||
ports:
|
||||
- port: {{ $data.port | default 80 }}
|
||||
protocol: TCP
|
||||
endpoints:
|
||||
- addresses:
|
||||
- ip: "{{ $data.ip }}"
|
||||
ports:
|
||||
- port: {{ $data.port | default 80 }}
|
||||
protocol: TCP
|
||||
- "{{ $data.ip }}"
|
||||
conditions:
|
||||
ready: true
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -68,6 +68,28 @@ module "k8s-helm-charts" {
|
||||
configs = {
|
||||
cm = {
|
||||
"exec.enabled" : true
|
||||
"resource.exclusions" : yamlencode([
|
||||
{ apiGroups = [""], kinds = ["Endpoints"] },
|
||||
{ apiGroups = ["coordination.k8s.io"], kinds = ["Lease"] },
|
||||
{
|
||||
apiGroups = ["authentication.k8s.io", "authorization.k8s.io"]
|
||||
kinds = [
|
||||
"SelfSubjectReview", "TokenReview", "LocalSubjectAccessReview",
|
||||
"SelfSubjectAccessReview", "SelfSubjectRulesReview", "SubjectAccessReview",
|
||||
]
|
||||
},
|
||||
{ apiGroups = ["certificates.k8s.io"], kinds = ["CertificateSigningRequest"] },
|
||||
{ apiGroups = ["cert-manager.io"], kinds = ["CertificateRequest"] },
|
||||
{ apiGroups = ["cilium.io"], kinds = ["CiliumIdentity", "CiliumEndpoint", "CiliumEndpointSlice"] },
|
||||
{
|
||||
apiGroups = ["kyverno.io", "reports.kyverno.io", "wgpolicyk8s.io"]
|
||||
kinds = [
|
||||
"PolicyReport", "ClusterPolicyReport", "EphemeralReport",
|
||||
"ClusterEphemeralReport", "AdmissionReport", "ClusterAdmissionReport",
|
||||
"BackgroundScanReport", "ClusterBackgroundScanReport", "UpdateRequest",
|
||||
]
|
||||
},
|
||||
])
|
||||
}
|
||||
params = {
|
||||
"server.insecure" = true
|
||||
|
||||
Reference in new issue
Block a user