Skip to content

Commit

Permalink
Merge pull request #41 from ManagedKube/cert-mananager-helm-v3
Browse files Browse the repository at this point in the history
cert-manager - updating to Helm v3 usage
sekka1 authored Nov 16, 2019
2 parents fd86ce0 + 551bac8 commit cf4686f
Showing 27 changed files with 47 additions and 132 deletions.
17 changes: 0 additions & 17 deletions kubernetes/helm/cert-manager/Chart.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: cert-manager-cluster-issuer
# The version and appVersion fields are set automatically by the release tool
version: v0.1.0
appVersion: v0.1.0
description: A Helm chart to create the cert-manager cluster issuers
Original file line number Diff line number Diff line change
@@ -47,19 +47,22 @@ Creating keys: https://docs.cert-manager.io/en/latest/tasks/issuers/setup-acme/d

Adding a request for a certificate via a dns01 verification

doc: https://docs.cert-manager.io/en/release-0.11/tutorials/acme/dns-validation.html

```
---
apiVersion: certmanager.k8s.io/v1alpha1
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: test1-dev-k8s-managedkube-com-tls
namespace: default
spec:
secretName: test1-dev-k8s-managedkube-com-tls
issuerRef:
# kind: ClusterIssuer
name: issuer-dns01
dnsNames:
- test1.dev.k8s.managedkube.com
- test2.dev.k8s.managedkube.com
issuerRef:
kind: ClusterIssuer
name: issuer-dns01
secretName: test1-dev-k8s-managedkube-com-tls
```
Original file line number Diff line number Diff line change
@@ -8,13 +8,17 @@ clouddns:
# This is the secret used to access the service account
# The file name has to be "credentials.json". The file name is put into the secret
# as the key name and the chart is looking for the key name "credentials.json"
# kubectl -n cert-manager create secret generic gcp-credentials-json --from-file=/credentials.json
# kubectl -n cert-manager create secret generic clouddns-dns01-solver-svc-acct --from-file=credentials.json
# Doc: https://docs.cert-manager.io/en/latest/tasks/issuers/setup-acme/dns01/google.html#create-a-service-account-secret
serviceAccountSecretRef:
name: "gcp-credentials-json"
name: "clouddns-dns01-solver-svc-acct"
key: credentials.json

# AWS Route53
# aws:
# region: us-east-1
# accessKeyID: xxx
# secretKey: xxx
issuer:
dns:
enabled: true
name: issuer-dns01

http:
enabled: true
name: issuer-http01
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.issuer.dns.enabled }}
# doc: http://docs.cert-manager.io/en/latest/reference/issuers/acme/dns01.html
---
apiVersion: certmanager.k8s.io/v1alpha1
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: {{ .Values.issuer.dns.name }}
@@ -10,7 +10,7 @@ spec:
email: {{ .Values.email }}
server: {{ .Values.letsencrypt.server }}
privateKeySecretRef:
name: letsencrypt-private-key
name: letsencrypt-private-key-dns-01
solvers:
- dns01:

@@ -27,7 +27,7 @@ spec:
{{- end }}

{{ if eq .Values.provider "google" }}
# Google Provider
# Google Provider - https://docs.cert-manager.io/en/release-0.11/tasks/issuers/setup-acme/dns01/google.html
clouddns:
# The ID of the GCP project
project: {{ .Values.clouddns.project }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.issuer.http.enabled }}
---
apiVersion: certmanager.k8s.io/v1alpha1
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: issuer-http01
@@ -12,7 +12,7 @@ spec:
email: {{ .Values.email }}
# Name of a secret used to store the ACME account private key from step 3
privateKeySecretRef:
name: letsencrypt-private-key
name: letsencrypt-private-key-http-01
# Enable the HTTP-01 challenge provider
http01: {}

File renamed without changes.
6 changes: 6 additions & 0 deletions kubernetes/helm/cert-manager/cert-manager/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: cert-manager
repository: https://charts.jetstack.io
version: v0.11.0
digest: sha256:51683512f39cf91681ecfb04428c086da8cdaf29f27d39e82c13052464a69beb
generated: "2019-11-16T07:44:27.913185996-08:00"
9 changes: 9 additions & 0 deletions kubernetes/helm/cert-manager/cert-manager/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
name: cert-manager
version: v0.11.0
appVersion: v0.11.0
description: A Helm chart for cert-manager
dependencies:
- name: cert-manager
version: v0.11.0
repository: https://charts.jetstack.io
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ BASE_PATH=.
APPLCATION_CHART_NAME=./
# APPLCATION_CHART_NAME=jetstack/cert-manager
APPLICATION_NAME=cert-manager
VERSION=0.8
VERSION=0.11

VALUES_FILE?=values.yaml

@@ -17,7 +17,7 @@ dependency:
${HELM_BINARY} dependency build

apply-crd:
kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-${VERSION}/deploy/manifests/00-crds.yaml
kubectl apply --validate=false -f https://raw.githubusercontent.com/jetstack/cert-manager/release-${VERSION}/deploy/manifests/00-crds.yaml

delete-crd:
kubectl delete -f https://raw.githubusercontent.com/jetstack/cert-manager/release-${VERSION}/deploy/manifests/00-crds.yaml
File renamed without changes.
Binary file not shown.
5 changes: 5 additions & 0 deletions kubernetes/helm/cert-manager/cert-manager/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
cert-manager:
webhook:
enabled: false

Binary file not shown.
20 changes: 0 additions & 20 deletions kubernetes/helm/cert-manager/issuers/clouddns/dns01.yaml

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions kubernetes/helm/cert-manager/issuers/http01.yaml

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions kubernetes/helm/cert-manager/issuers/route53/dns01.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions kubernetes/helm/cert-manager/requirements.lock

This file was deleted.

5 changes: 0 additions & 5 deletions kubernetes/helm/cert-manager/requirements.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions kubernetes/helm/cert-manager/values.yaml

This file was deleted.

0 comments on commit cf4686f

Please sign in to comment.