Posted On 26.01.2025

Kubernetes Quickie: Extract the Ca-Bundle

0 comments
confdroid.com >> blog >> Kubernetes Quickie: Extract the Ca-Bundle
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  name: ingress-nginx-admission
webhooks:
  - name: admission.ingress.k8s.io
    clientConfig:
      service:
        name: ingress-nginx-admission
        namespace: ingress-nginx
        path: /networking/v1/ingresses
      caBundle: <CA_BUNDLE> # This should be filled with the base64-encoded certificate of the CA used by your cluster.
    rules:
      - operations: ["CREATE", "UPDATE"]
        apiGroups: ["networking.k8s.io"]
        apiVersions: ["v1"]
        resources: ["ingresses"]
    admissionReviewVersions: ["v1"]
    sideEffects: None
$kubectl config view --raw --minify --flatten -o jsonpath='{.clusters[].cluster.certificate-authority-data}'
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJBZ0lJWm0vR2V3ZzNzMlF3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TlRBeE1qVXhOak14TXpGYUZ3MHpOVEF4TWpNeE5qTTJNekZhTUJVeApFekFSQmdOVkJBTVRDbXQxWW1WeWJtVjBaWE13Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLCkFvSUJBUURMWEIwcDZ1VTE4Y3N2Umw1NzFKdSt5

Author Profile

12ww1160DevOps engineer & architect

Leave a Reply

Your email address will not be published. Required fields are marked *

16 + fourteen =

Related Post

Postgresql | Tablespaces on multiple file systems

Postgresql (PG) is a quite powerful open source database systems and widely used as DB…

Kubernetes – VM vs Bare Metal

As mentioned here, the series about Kubernetes goes right ahead as planned.While the main topic…

ConfDroid Puppet Modules – Pilot

## Launching the ConfDroid Puppet Modules Series: Custom Tools for Real-World Infrastructure Following the introduction…
Social Media Auto Publish Powered By : XYZScripts.com