Skip to content

Instantly share code, notes, and snippets.

@lemmy04
Created April 9, 2021 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lemmy04/d0eca11a4aa6c985c7af137c3609a7a0 to your computer and use it in GitHub Desktop.
Save lemmy04/d0eca11a4aa6c985c7af137c3609a7a0 to your computer and use it in GitHub Desktop.
Deploying Traefik - configure default certificate
apiVersion: traefik.containo.us/v1alpha1
kind: TLSStore
metadata:
name: default
namespace: default
spec:
defaultCertificate:
secretName: appsrv
@lemmy04
Copy link
Author

lemmy04 commented Apr 9, 2021

Before you do this you have to create the secret with the right name in kubernetes like this:
kubectl create secret tls -n default appsrv --cert=./appsrv.eregion.home.crt --key=./appsrv.eregion.home.pem

the .crt file contains certificate and CA chain in PEM format, the other one is the secret key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment