Skip to content

Instantly share code, notes, and snippets.

@jseiser
Created June 20, 2025 15:45
Show Gist options
  • Save jseiser/de092f7d15848c4148e634af768a1622 to your computer and use it in GitHub Desktop.
Save jseiser/de092f7d15848c4148e634af768a1622 to your computer and use it in GitHub Desktop.
Control Plane
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: linkerd-trust-root-issuer
namespace: cert-manager
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: linkerd-trust-anchor
namespace: cert-manager
spec:
issuerRef:
kind: Issuer
name: linkerd-trust-root-issuer
secretName: linkerd-trust-anchor
isCA: true
commonName: root.linkerd.cluster.local
duration: 87660h # 10 years
renewBefore: 4380h # 6 months
privateKey:
rotationPolicy: Always
algorithm: ECDSA
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: linkerd-identity-issuer
namespace: cert-manager
spec:
ca:
secretName: linkerd-trust-anchor
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: linkerd-identity-issuer
namespace: linkerd
spec:
issuerRef:
name: linkerd-identity-issuer
kind: ClusterIssuer
secretName: linkerd-identity-issuer
isCA: true
commonName: identity.linkerd.cluster.local
duration: 336h # 2 weeks
renewBefore: 168h # 1 weeks
privateKey:
rotationPolicy: Always
algorithm: ECDSA
---
apiVersion: trust.cert-manager.io/v1alpha1
kind: Bundle
metadata:
name: linkerd-identity-trust-roots
namespace: linkerd
spec:
sources:
- secret:
name: "linkerd-trust-anchor"
key: "tls.crt"
- secret:
name: "linkerd-previous-anchor"
key: "tls.crt"
target:
configMap:
key: "ca-bundle.crt"
namespaceSelector:
matchLabels:
linkerd.io/is-control-plane: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment