migrating to endpoint slice
This commit is contained in:
1 parent
3fe032eb3e
commit
d9be8be159
2 files changed
+35
-8
No files matched your search
@@ -1,15 +1,20 @@
|
|||||||
{{ range $prefix, $data := .Values.reverseProxy }}
|
{{ range $prefix, $data := .Values.reverseProxy }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: discovery.k8s.io/v1
|
||||||
kind: Endpoints
|
kind: EndpointSlice
|
||||||
metadata:
|
metadata:
|
||||||
name: "reverse-proxy-{{$prefix}}"
|
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:
|
- addresses:
|
||||||
- ip: "{{ $data.ip }}"
|
- "{{ $data.ip }}"
|
||||||
ports:
|
conditions:
|
||||||
- port: {{ $data.port | default 80 }}
|
ready: true
|
||||||
protocol: TCP
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -54,4 +59,4 @@ spec:
|
|||||||
number: 80
|
number: 80
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -68,6 +68,28 @@ module "k8s-helm-charts" {
|
|||||||
configs = {
|
configs = {
|
||||||
cm = {
|
cm = {
|
||||||
"exec.enabled" : true
|
"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 = {
|
params = {
|
||||||
"server.insecure" = true
|
"server.insecure" = true
|
||||||
|
|||||||
Reference in new issue
Block a user