mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
separate certificate for k8s dashboard (because of different namespace)
This commit is contained in:
parent
c0ce99ec33
commit
2f9f7339ec
2 changed files with 18 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue