Skip to content

Instantly share code, notes, and snippets.

@erkanzileli
Created April 15, 2019 19:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erkanzileli/79472f4fa8a45c5fadba437c4ad202a7 to your computer and use it in GitHub Desktop.
Save erkanzileli/79472f4fa8a45c5fadba437c4ad202a7 to your computer and use it in GitHub Desktop.
Cert Manager with Let's Encrypt

Otomatik TLS oluşturarak Let's Encrypt üzerinden SSL sertifikası nasıl alınır?

Cert Manager Kurulumu

helm install --name cert-manager --version v0.5.2 \
    --namespace kube-system stable/cert-manager

Let‘s Encrypt Issuer Kurulumu

Geçerli bir e-posta adresi gerekli

export EMAIL=ahmet@example.com
curl -sSL https://rawgit.com/ahmetb/gke-letsencrypt/master/yaml/letsencrypt-issuer.yaml | \
    sed -e "s/email: ''/email: $EMAIL/g" | \
    kubectl apply -f-

Beklenen çıktı:

clusterissuer "letsencrypt-staging" created
clusterissuer "letsencrypt-prod" created

Uygulamanın Ingress Kısmına Eklenmesi Gerekenler

annotations:
    certmanager.k8s.io/cluster-issuer: letsencrypt-prod
    certmanager.k8s.io/acme-http01-edit-in-place: "true"
tls:
- secretName: docker-registry.35.202.15.36.nip.io-tls
    hosts:
    - docker-registry.35.202.15.36.nip.io

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