Updates to k8s objects

This commit is contained in:
Hyatt 2023-03-26 11:00:55 -05:00
parent a205b07037
commit b7b88162ad
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA
4 changed files with 36 additions and 17 deletions

View File

@ -1,4 +1,3 @@
---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
@ -16,3 +15,13 @@ data:
- goharbor/redis-photon - goharbor/redis-photon
- goharbor/registry-photon - goharbor/registry-photon
- goharbor/trivy-adapter-photon - goharbor/trivy-adapter-photon
kubernetes:
namespace: ingress-nginx
service-name: webhook
certificate-authority:
certificate: |
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
private-key: |
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----

View File

@ -1,8 +1,7 @@
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
name: mutating-webhool name: mutating-webhook
labels: labels:
app: mutating-webhook app: mutating-webhook
spec: spec:

View File

@ -1,4 +1,3 @@
---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:

View File

@ -1,18 +1,30 @@
--- ---
apiVersion: admissionregistration.k8s.io/v1beta1 apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration kind: MutatingWebhookConfiguration
metadata: metadata:
name: pod-mutation name: pod-mutation
webhooks: webhooks:
- name: pod-mutation.default.svc - name: pod-mutation.ingress-nginx.svc
clientConfig: clientConfig:
service: service:
name: webhook name: webhook
namespace: default namespace: ingress-nginx
path: "/api/v1/mutate/pod" path: "/api/v1/mutate/pod"
port: 443
caBundle: Base64 encoded Certificate Authority PEM file
rules: rules:
- operations: ["CREATE", ] - operations:
apiGroups: [""] - "CREATE"
apiVersions: ["v1"] - "UPDATE"
resources: ["pods"] apiVersions:
- "*"
apiGroups:
- "*"
resources:
- "pods/*"
scope: "Namespaced"
sideEffects: None
admissionReviewVersions:
- "v1"
failurePolicy: Ignore failurePolicy: Ignore