-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path30-cert-simple-with-keystores.yaml
47 lines (45 loc) · 1.28 KB
/
30-cert-simple-with-keystores.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# SPDX-FileCopyrightText: 2019 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
annotations:
# class annotation only needed if cert-controller-manager is started with --cert-class=myclass
#cert.gardener.cloud/class: myclass
name: cert-simple-with-keystores
namespace: default
spec:
commonName: cert1.mydomain.com
dnsNames:
- cert1.my-other-domain.com
# optionally specify secret to store certificate
secretRef:
name: cert-simple-secret
namespace: default
# optionally set labels for the secret
#secretLabels:
# key1: value1
# key2: value2
# enable keystore creation for both JKS and PKCS#12
# This will create additional data entries in the certificate secret named `keystore.jks`, `truststore.jks` for JKS
# and `keystore.p12`, `truststore.p12` for PKCS#12
keystores:
jks:
create: true
passwordSecretRef:
secretName: keystore-secret
key: password
pkcs12:
create: true
passwordSecretRef:
secretName: keystore-secret
key: password
---
apiVersion: v1
kind: Secret
metadata:
name: keystore-secret
namespace: default
data:
password: cGFzcw== # example password is `pass`