separate certificate for k8s dashboard (because of different namespace)

This commit is contained in:
Andrey Kartashov 2018-07-22 17:16:04 +07:00
parent c0ce99ec33
commit 2f9f7339ec
2 changed files with 18 additions and 3 deletions

View file

@ -15,7 +15,6 @@ spec:
- git.gorilych.ru - git.gorilych.ru
- jira.gorilych.ru - jira.gorilych.ru
- jupyter.gorilych.ru - jupyter.gorilych.ru
- k8s.gorilych.ru
- router.gorilych.ru - router.gorilych.ru
- seafile.gorilych.ru - seafile.gorilych.ru
# w/a for rewrite-target from https://github.com/jetstack/cert-manager/issues/286#issuecomment-361033891 # w/a for rewrite-target from https://github.com/jetstack/cert-manager/issues/286#issuecomment-361033891
@ -28,7 +27,6 @@ spec:
- git.gorilych.ru - git.gorilych.ru
- jira.gorilych.ru - jira.gorilych.ru
- jupyter.gorilych.ru - jupyter.gorilych.ru
- k8s.gorilych.ru
- router.gorilych.ru - router.gorilych.ru
- seafile.gorilych.ru - seafile.gorilych.ru

View file

@ -1,11 +1,28 @@
--- ---
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: k8s-gorilych-ru-certificate
namespace: kube-system
spec:
secretName: k8s-gorilych-ru-tls
issuerRef:
name: letsencrypt
kind: ClusterIssuer
commonName: k8s.gorilych.ru
# w/a for rewrite-target from https://github.com/jetstack/cert-manager/issues/286#issuecomment-361033891
acme:
config:
- http01: { ingressClass: nginx }
domains:
- k8s.gorilych.ru
---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: kubernetes-dashboard name: kubernetes-dashboard
namespace: kube-system namespace: kube-system
annotations: annotations:
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/secure-backends: "true" nginx.ingress.kubernetes.io/secure-backends: "true"
spec: spec:
tls: tls: