Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-manager-mk2/config/certmanager/certificate.yaml
2499 views
1
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
# Licensed under the GNU Affero General Public License (AGPL).
3
# See License-AGPL.txt in the project root for license information.
4
5
# The following manifests contain a self-signed issuer CR and a certificate CR.
6
# More document can be found at https://docs.cert-manager.io
7
# WARNING: Targets CertManager v1.0. Check https://cert-manager.io/docs/installation/upgrading/ for breaking changes.
8
apiVersion: cert-manager.io/v1
9
kind: Issuer
10
metadata:
11
name: selfsigned-issuer
12
namespace: system
13
spec:
14
selfSigned: {}
15
---
16
apiVersion: cert-manager.io/v1
17
kind: Certificate
18
metadata:
19
name: serving-cert # this name should match the one appeared in kustomizeconfig.yaml
20
namespace: system
21
spec:
22
# $(SERVICE_NAME) and $(SERVICE_NAMESPACE) will be substituted by kustomize
23
dnsNames:
24
- $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc
25
- $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc.cluster.local
26
issuerRef:
27
kind: Issuer
28
name: selfsigned-issuer
29
secretName: webhook-server-cert # this secret will not be prefixed, since it's not managed by kustomize
30
31