Skip to content

Instantly share code, notes, and snippets.

@rdpetrusek
Last active November 27, 2022 13:42
Show Gist options
  • Select an option

  • Save rdpetrusek/5f3252e21278060c32098dd53db7fe15 to your computer and use it in GitHub Desktop.

Select an option

Save rdpetrusek/5f3252e21278060c32098dd53db7fe15 to your computer and use it in GitHub Desktop.
Kubernetes, Istio, Cert Manager, and Let's Encrypt - Certificates
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: deanpetrusek-domain-cert-prod
namespace: istio-system
spec:
secretName: deanpetrusek-domain-cert-prod
duration: 2160h # 90d
renewBefore: 360h # 15d
isCA: false
privateKey:
algorithm: RSA
encoding: PKCS1
size: 2048
usages:
- server auth
- client auth
dnsNames:
- "www.deanpetrusek.cloud"
- "fx.deanpetrusek.cloud"
- "testpage.deanpetrusek.cloud"
issuerRef:
name: letsencrypt-prod-cluster
kind: ClusterIssuer
group: cert-manager.io
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: deanpetrusek-domain-cert-staging
namespace: istio-system
spec:
secretName: deanpetrusek-domain-cert-staging
duration: 2160h # 90d
renewBefore: 360h # 15d
isCA: false
privateKey:
algorithm: RSA
encoding: PKCS1
size: 2048
usages:
- server auth
- client auth
dnsNames:
- "certstaging.deanpetrusek.cloud"
issuerRef:
name: letsencrypt-staging-cluster
kind: ClusterIssuer
group: cert-manager.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment