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}'
Advertisements
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJBZ0lJWm0vR2V3ZzNzMlF3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TlRBeE1qVXhOak14TXpGYUZ3MHpOVEF4TWpNeE5qTTJNekZhTUJVeApFekFSQmdOVkJBTVRDbXQxWW1WeWJtVjBaWE13Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLCkFvSUJBUURMWEIwcDZ1VTE4Y3N2Umw1NzFKdSt5

Author Profile

12ww1160DevOps engineer & architect

Advertisements

Leave a Reply

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

6 + 13 =

Related Post

Databases – Postgresql – Gitea and PGBouncer

Fixing Gitea 500 Errors with PostgreSQL + pgBouncer: The Prepared Statements Trap If you've ever…

Kubernetes: How to resolve external DNS within a pod

Sometimes we need to be able to resolve external ip addresses from within a pod.…

Rocky 9 install R10K service

How to install Puppet R10k service on Rocky 9 If you happen to manage your…