Created
April 9, 2021 07:29
-
-
Save lemmy04/d0eca11a4aa6c985c7af137c3609a7a0 to your computer and use it in GitHub Desktop.
Deploying Traefik - configure default certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: traefik.containo.us/v1alpha1 | |
kind: TLSStore | |
metadata: | |
name: default | |
namespace: default | |
spec: | |
defaultCertificate: | |
secretName: appsrv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.