Skip to content

Commit c35c29d

Browse files
committed
./unhelm.sh cockroachdb.ystack.values.yaml
1 parent a120f3f commit c35c29d

File tree

9 files changed

+42
-11
lines changed

9 files changed

+42
-11
lines changed

cockroachdb.ystack.values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ tls:
1717
selfSigner:
1818
enabled: false
1919
caProvided: false
20+
21+
statefulset:
22+
serviceAccount:
23+
create: false

cockroachdb/ystack/cockroachdb/templates/job.init.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: cockroachdb-init
77
namespace: "unhelm-namespace-placeholder"
88
labels:
9-
helm.sh/chart: cockroachdb-11.0.3
9+
helm.sh/chart: cockroachdb-11.2.2
1010
app.kubernetes.io/name: cockroachdb
1111
app.kubernetes.io/instance: "cockroachdb"
1212
app.kubernetes.io/managed-by: "Helm"
@@ -22,11 +22,19 @@ spec:
2222
app.kubernetes.io/instance: "cockroachdb"
2323
app.kubernetes.io/component: init
2424
spec:
25+
securityContext:
26+
seccompProfile:
27+
type: "RuntimeDefault"
28+
runAsGroup: 1000
29+
runAsUser: 1000
30+
fsGroup: 1000
31+
runAsNonRoot: true
2532
restartPolicy: OnFailure
2633
terminationGracePeriodSeconds: 0
34+
serviceAccountName: default
2735
containers:
2836
- name: cluster-init
29-
image: "cockroachdb/cockroach:v23.1.4"
37+
image: "cockroachdb/cockroach:v23.1.12"
3038
imagePullPolicy: "IfNotPresent"
3139
# Run the command in an `while true` loop because this Job is bound
3240
# to come up before the CockroachDB Pods (due to the time needed to
@@ -64,3 +72,7 @@ spec:
6472
6573
initCluster;
6674
env:
75+
securityContext:
76+
allowPrivilegeEscalation: false
77+
capabilities:
78+
drop: ["ALL"]

cockroachdb/ystack/cockroachdb/templates/poddisruptionbudget.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: cockroachdb-budget
77
namespace: "unhelm-namespace-placeholder"
88
labels:
9-
helm.sh/chart: cockroachdb-11.0.3
9+
helm.sh/chart: cockroachdb-11.2.2
1010
app.kubernetes.io/name: cockroachdb
1111
app.kubernetes.io/instance: "cockroachdb"
1212
app.kubernetes.io/managed-by: "Helm"

cockroachdb/ystack/cockroachdb/templates/service.discovery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
name: cockroachdb
1111
namespace: "unhelm-namespace-placeholder"
1212
labels:
13-
helm.sh/chart: cockroachdb-11.0.3
13+
helm.sh/chart: cockroachdb-11.2.2
1414
app.kubernetes.io/name: cockroachdb
1515
app.kubernetes.io/instance: "cockroachdb"
1616
app.kubernetes.io/managed-by: "Helm"

cockroachdb/ystack/cockroachdb/templates/service.public.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
name: cockroachdb-public
1010
namespace: "unhelm-namespace-placeholder"
1111
labels:
12-
helm.sh/chart: cockroachdb-11.0.3
12+
helm.sh/chart: cockroachdb-11.2.2
1313
app.kubernetes.io/name: cockroachdb
1414
app.kubernetes.io/instance: "cockroachdb"
1515
app.kubernetes.io/managed-by: "Helm"

cockroachdb/ystack/cockroachdb/templates/serviceMonitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: cockroachdb
77
namespace: "unhelm-namespace-placeholder"
88
labels:
9-
helm.sh/chart: cockroachdb-11.0.3
9+
helm.sh/chart: cockroachdb-11.2.2
1010
app.kubernetes.io/name: cockroachdb
1111
app.kubernetes.io/instance: "cockroachdb"
1212
app.kubernetes.io/managed-by: "Helm"

cockroachdb/ystack/cockroachdb/templates/statefulset.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: cockroachdb
77
namespace: "unhelm-namespace-placeholder"
88
labels:
9-
helm.sh/chart: cockroachdb-11.0.3
9+
helm.sh/chart: cockroachdb-11.2.2
1010
app.kubernetes.io/name: cockroachdb
1111
app.kubernetes.io/instance: "cockroachdb"
1212
app.kubernetes.io/managed-by: "Helm"
@@ -29,6 +29,7 @@ spec:
2929
app.kubernetes.io/instance: "cockroachdb"
3030
app.kubernetes.io/component: cockroachdb
3131
spec:
32+
serviceAccountName: default
3233
affinity:
3334
podAntiAffinity:
3435
preferredDuringSchedulingIgnoredDuringExecution:
@@ -54,7 +55,7 @@ spec:
5455
terminationGracePeriodSeconds: 60
5556
containers:
5657
- name: db
57-
image: "cockroachdb/cockroach:v23.1.4"
58+
image: "cockroachdb/cockroach:v23.1.12"
5859
imagePullPolicy: "IfNotPresent"
5960
args:
6061
- shell
@@ -115,10 +116,24 @@ spec:
115116
initialDelaySeconds: 10
116117
periodSeconds: 5
117118
failureThreshold: 2
119+
securityContext:
120+
allowPrivilegeEscalation: false
121+
capabilities:
122+
drop:
123+
- ALL
124+
privileged: false
125+
readOnlyRootFilesystem: true
118126
volumes:
119127
- name: datadir
120128
persistentVolumeClaim:
121129
claimName: datadir
130+
securityContext:
131+
seccompProfile:
132+
type: "RuntimeDefault"
133+
fsGroup: 1000
134+
runAsGroup: 1000
135+
runAsUser: 1000
136+
runAsNonRoot: true
122137
volumeClaimTemplates:
123138
- metadata:
124139
name: datadir

cockroachdb/ystack/cockroachdb/templates/tests/client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
restartPolicy: Never
1212
containers:
1313
- name: client-test
14-
image: "cockroachdb/cockroach:v23.1.4"
14+
image: "cockroachdb/cockroach:v23.1.12"
1515
imagePullPolicy: "IfNotPresent"
1616
command:
1717
- /cockroach/cockroach

cockroachdb/ystack/unhelm-namespace-placeholder.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Note the following instances of namespace strings that Kustomize won't replace
1010
value: cockroachdb.unhelm-namespace-placeholder.svc.cluster.local
1111
- name: COCKROACH_CHANNEL
1212
value: kubernetes-helm
13-
image: cockroachdb/cockroach:v23.1.4
13+
image: cockroachdb/cockroach:v23.1.12
1414
imagePullPolicy: IfNotPresent
1515
livenessProbe:
1616
--
@@ -36,4 +36,4 @@ Note the following instances of namespace strings that Kustomize won't replace
3636
- "26257"
3737
- -e
3838
- SHOW DATABASES;
39-
image: cockroachdb/cockroach:v23.1.4
39+
image: cockroachdb/cockroach:v23.1.12

0 commit comments

Comments
 (0)