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 − 12 =

Related Post

Troubleshooting Puppet 8 with PuppetDB: The val Bug and Other Gotchas

This year I moved all my lab nodes to Rocky 9 and Puppet 8, aside…

Publishing Pipeline v1.2.0 – backlinks and X support

There is good news about this project and its progress: we are adding a new…

How to share fuse file systems with NFS

As part of my mini-blog about migrating to Kubernetes I am currently setting up an…
Social Media Auto Publish Powered By : XYZScripts.com