-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discontinue Kube RBAC Proxy in Default Kubebuilder Scaffolding
- Loading branch information
1 parent
e683f8d
commit 34af3f4
Showing
140 changed files
with
1,601 additions
and
1,646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
...c/component-config-tutorial/testdata/project/config/default/manager_auth_proxy_patch.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
.../src/component-config-tutorial/testdata/project/config/default/manager_metrics_patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This patch adds the args to allow exposing the metrics endpoint securely | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: controller-manager | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
args: | ||
- "--metrics-bind-address=0.0.0.0:8080" |
18 changes: 18 additions & 0 deletions
18
...book/src/component-config-tutorial/testdata/project/config/policy/allow-cert-manager.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Allow CertManager have communication across the cluster | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: allow-cert-manager | ||
namespace: cert-manager | ||
spec: | ||
podSelector: {} # This applies to all pods within the cert-manager namespace | ||
policyTypes: | ||
- Ingress | ||
- Egress | ||
ingress: | ||
# Allow ingress from all pods in the same namespace | ||
- from: | ||
- podSelector: {} # This effectively allows all pods within the namespace | ||
egress: | ||
# Allow egress to all destinations | ||
- {} |
2 changes: 2 additions & 0 deletions
2
docs/book/src/component-config-tutorial/testdata/project/config/policy/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- protect-metrics.yaml |
26 changes: 26 additions & 0 deletions
26
docs/book/src/component-config-tutorial/testdata/project/config/policy/protect-metrics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# NetworkPolicy to protect metrics endpoint | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: project | ||
app.kubernetes.io/managed-by: kustomize | ||
name: protect-metrics | ||
namespace: system | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
control-plane: controller-manager | ||
policyTypes: | ||
- Egress | ||
- Ingress | ||
egress: | ||
- {} | ||
ingress: | ||
- from: | ||
- namespaceSelector: | ||
matchLabels: | ||
monitoring: enabled # Only from namespaces with this label | ||
ports: | ||
- protocol: TCP | ||
port: 8080 # TCP port for metrics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
...component-config-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...k/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
docs/book/src/cronjob-tutorial/testdata/project/config/default/manager_auth_proxy_patch.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
docs/book/src/cronjob-tutorial/testdata/project/config/default/manager_metrics_patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This patch adds the args to allow exposing the metrics endpoint securely | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: controller-manager | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
args: | ||
- "--metrics-bind-address=0.0.0.0:8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
docs/book/src/cronjob-tutorial/testdata/project/config/policy/allow-cert-manager.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Allow CertManager have communication across the cluster | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: allow-cert-manager | ||
namespace: cert-manager | ||
spec: | ||
podSelector: {} # This applies to all pods within the cert-manager namespace | ||
policyTypes: | ||
- Ingress | ||
- Egress | ||
ingress: | ||
# Allow ingress from all pods in the same namespace | ||
- from: | ||
- podSelector: {} # This effectively allows all pods within the namespace | ||
egress: | ||
# Allow egress to all destinations | ||
- {} |
Oops, something went wrong.