Skip to content

Instantly share code, notes, and snippets.

View Jonher937's full-sized avatar

Jonathan Herlin Jonher937

  • Sweden
  • 16:57 (UTC +02:00)
View GitHub Profile
@tomconte
tomconte / containerd-certificate-ds.yaml
Last active May 15, 2024 06:31
This is a Kubernetes DaemonSet definition that will install a custom certificate on the nodes and restart containerd. This is useful if your private registry is protected using a self-signed certificate. Not tested in production.
apiVersion: v1
kind: ConfigMap
metadata:
name: trusted-ca
namespace: kube-system
data:
ca.crt: |+
-----BEGIN CERTIFICATE-----
MIIFkTCCA3mgAwIBAgIUCXaMcLg8teiGZ7o0dIQRIOdHEA8wDQYJKoZIhvcNAQEL
BQAweDELMAkGA1UEBhMCRlIxDDAKBgNVBAgMA04vQTEMMAoGA1UEBwwDTi9BMSAw