Skip to content

Commit

Permalink
./unhelm.sh cockroachdb.ystack.values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Dec 8, 2023
1 parent a120f3f commit c35c29d
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 11 deletions.
4 changes: 4 additions & 0 deletions cockroachdb.ystack.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ tls:
selfSigner:
enabled: false
caProvided: false

statefulset:
serviceAccount:
create: false
16 changes: 14 additions & 2 deletions cockroachdb/ystack/cockroachdb/templates/job.init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: cockroachdb-init
namespace: "unhelm-namespace-placeholder"
labels:
helm.sh/chart: cockroachdb-11.0.3
helm.sh/chart: cockroachdb-11.2.2
app.kubernetes.io/name: cockroachdb
app.kubernetes.io/instance: "cockroachdb"
app.kubernetes.io/managed-by: "Helm"
Expand All @@ -22,11 +22,19 @@ spec:
app.kubernetes.io/instance: "cockroachdb"
app.kubernetes.io/component: init
spec:
securityContext:
seccompProfile:
type: "RuntimeDefault"
runAsGroup: 1000
runAsUser: 1000
fsGroup: 1000
runAsNonRoot: true
restartPolicy: OnFailure
terminationGracePeriodSeconds: 0
serviceAccountName: default
containers:
- name: cluster-init
image: "cockroachdb/cockroach:v23.1.4"
image: "cockroachdb/cockroach:v23.1.12"
imagePullPolicy: "IfNotPresent"
# Run the command in an `while true` loop because this Job is bound
# to come up before the CockroachDB Pods (due to the time needed to
Expand Down Expand Up @@ -64,3 +72,7 @@ spec:
initCluster;
env:
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: cockroachdb-budget
namespace: "unhelm-namespace-placeholder"
labels:
helm.sh/chart: cockroachdb-11.0.3
helm.sh/chart: cockroachdb-11.2.2
app.kubernetes.io/name: cockroachdb
app.kubernetes.io/instance: "cockroachdb"
app.kubernetes.io/managed-by: "Helm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
name: cockroachdb
namespace: "unhelm-namespace-placeholder"
labels:
helm.sh/chart: cockroachdb-11.0.3
helm.sh/chart: cockroachdb-11.2.2
app.kubernetes.io/name: cockroachdb
app.kubernetes.io/instance: "cockroachdb"
app.kubernetes.io/managed-by: "Helm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: cockroachdb-public
namespace: "unhelm-namespace-placeholder"
labels:
helm.sh/chart: cockroachdb-11.0.3
helm.sh/chart: cockroachdb-11.2.2
app.kubernetes.io/name: cockroachdb
app.kubernetes.io/instance: "cockroachdb"
app.kubernetes.io/managed-by: "Helm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: cockroachdb
namespace: "unhelm-namespace-placeholder"
labels:
helm.sh/chart: cockroachdb-11.0.3
helm.sh/chart: cockroachdb-11.2.2
app.kubernetes.io/name: cockroachdb
app.kubernetes.io/instance: "cockroachdb"
app.kubernetes.io/managed-by: "Helm"
Expand Down
19 changes: 17 additions & 2 deletions cockroachdb/ystack/cockroachdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: cockroachdb
namespace: "unhelm-namespace-placeholder"
labels:
helm.sh/chart: cockroachdb-11.0.3
helm.sh/chart: cockroachdb-11.2.2
app.kubernetes.io/name: cockroachdb
app.kubernetes.io/instance: "cockroachdb"
app.kubernetes.io/managed-by: "Helm"
Expand All @@ -29,6 +29,7 @@ spec:
app.kubernetes.io/instance: "cockroachdb"
app.kubernetes.io/component: cockroachdb
spec:
serviceAccountName: default
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -54,7 +55,7 @@ spec:
terminationGracePeriodSeconds: 60
containers:
- name: db
image: "cockroachdb/cockroach:v23.1.4"
image: "cockroachdb/cockroach:v23.1.12"
imagePullPolicy: "IfNotPresent"
args:
- shell
Expand Down Expand Up @@ -115,10 +116,24 @@ spec:
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 2
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
volumes:
- name: datadir
persistentVolumeClaim:
claimName: datadir
securityContext:
seccompProfile:
type: "RuntimeDefault"
fsGroup: 1000
runAsGroup: 1000
runAsUser: 1000
runAsNonRoot: true
volumeClaimTemplates:
- metadata:
name: datadir
Expand Down
2 changes: 1 addition & 1 deletion cockroachdb/ystack/cockroachdb/templates/tests/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
restartPolicy: Never
containers:
- name: client-test
image: "cockroachdb/cockroach:v23.1.4"
image: "cockroachdb/cockroach:v23.1.12"
imagePullPolicy: "IfNotPresent"
command:
- /cockroach/cockroach
Expand Down
4 changes: 2 additions & 2 deletions cockroachdb/ystack/unhelm-namespace-placeholder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Note the following instances of namespace strings that Kustomize won't replace
value: cockroachdb.unhelm-namespace-placeholder.svc.cluster.local
- name: COCKROACH_CHANNEL
value: kubernetes-helm
image: cockroachdb/cockroach:v23.1.4
image: cockroachdb/cockroach:v23.1.12
imagePullPolicy: IfNotPresent
livenessProbe:
--
Expand All @@ -36,4 +36,4 @@ Note the following instances of namespace strings that Kustomize won't replace
- "26257"
- -e
- SHOW DATABASES;
image: cockroachdb/cockroach:v23.1.4
image: cockroachdb/cockroach:v23.1.12

0 comments on commit c35c29d

Please sign in to comment.