Updating to cert-manager 1.0

This commit is contained in:
Moritz Graf 2020-09-12 12:36:17 +02:00
parent 7d9e0e9d94
commit 338d312eda
4 changed files with 12 additions and 8 deletions

View File

@ -59,18 +59,16 @@ helm upgrade --install ingress-nginx ingress-nginx/ingress-nginx -n ingress-ngin
## [cert-manager](https://cert-manager.io/docs/tutorials/acme/ingress/) ## [cert-manager](https://cert-manager.io/docs/tutorials/acme/ingress/)
Apply with helm: Apply with helm. [See chart.](https://github.com/jetstack/cert-manager):
```bash ```bash
kubectl create ns cert-manager kubectl create ns cert-manager
helm repo add jetstack https://charts.jetstack.io helm repo add jetstack https://charts.jetstack.io
helm repo update helm repo update
helm upgrade --install cert-manager jetstack/cert-manager -n cert-manager -f cert-manager/cert-manager.yaml helm upgrade --install cert-manager jetstack/cert-manager -n cert-manager -f cert-manager/cert-manager.yaml
# probably not even needed:
$ kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/master/deploy/manifests/00-crds.yaml
# this is required: # this is required:
$ kubectl apply -f cert-manager/staging-issuer.yaml kubectl apply -f cert-manager/staging-issuer.yaml
$ kubectl apply -f cert-manager/production-issuer.yaml kubectl apply -f cert-manager/production-issuer.yaml
``` ```
To test all this you may use the kuaard demo project: To test all this you may use the kuaard demo project:
@ -192,8 +190,13 @@ kubectl apply -f tt-rss/
## monitoring ## monitoring
The prometheus-operator, now called [kube-prometheus-stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack) is used.
```sh ```sh
helm upgrade --install prometheus-operator stable/prometheus-operator -n monitoring -f monitoring/prometheus-operator.secret.yml kubectl create ns monitoring
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm upgrade --install prometheus-operator prometheus-community/kube-prometheus-stack -n monitoring -f monitoring/prometheus-operator.secret.yml
``` ```
## gitea ## gitea

View File

@ -7,3 +7,4 @@ podLabels:
app: cert-manager app: cert-manager
prometheus: prometheus:
enabled: false enabled: false
installCRDs: true

View File

@ -1,6 +1,6 @@
# status: implemented # status: implemented
apiVersion: cert-manager.io/v1alpha2 apiVersion: cert-manager.io/v1
kind: ClusterIssuer kind: ClusterIssuer
metadata: metadata:
name: letsencrypt-prod name: letsencrypt-prod

View File

@ -1,6 +1,6 @@
# status: implemented # status: implemented
apiVersion: cert-manager.io/v1alpha2 apiVersion: cert-manager.io/v1
kind: ClusterIssuer kind: ClusterIssuer
metadata: metadata:
name: letsencrypt-staging name: letsencrypt-staging