Skip to content

Commit da0ac43

Browse files
author
Yandu Oppacher
authored
Adding an example for a secure client for the new helm charts and the (#201)
certificates generated by the new cert utility.
1 parent d4cb38c commit da0ac43

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

examples/client-secure.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright 2021 The Cockroach Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# Generated, do not edit. Please edit this file instead: config/templates/client-secure-operator.yaml.in
16+
#
17+
18+
apiVersion: v1
19+
kind: Pod
20+
metadata:
21+
name: cockroachdb-client-secure
22+
spec:
23+
serviceAccountName: cockroachdb
24+
containers:
25+
- name: cockroachdb-client-secure
26+
image: cockroachdb/cockroach:v21.1.11
27+
imagePullPolicy: IfNotPresent
28+
volumeMounts:
29+
- name: client-certs
30+
mountPath: /cockroach/cockroach-certs/
31+
command:
32+
- sleep
33+
- "2147483648" # 2^31
34+
terminationGracePeriodSeconds: 0
35+
volumes:
36+
- name: client-certs
37+
projected:
38+
sources:
39+
- secret:
40+
name: cockroachdb-client-secret
41+
items:
42+
- key: ca.crt
43+
path: ca.crt
44+
- key: tls.crt
45+
path: client.root.crt
46+
- key: tls.key
47+
path: client.root.key
48+
defaultMode: 256

0 commit comments

Comments
 (0)