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 0497966
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 12 deletions.
7 changes: 7 additions & 0 deletions cockroachdb.ystack.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ tls:
selfSigner:
enabled: false
caProvided: false

statefulset:
replicas: 1
conf:
single-node: true
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
21 changes: 18 additions & 3 deletions cockroachdb/ystack/cockroachdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ 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"
app.kubernetes.io/component: cockroachdb
spec:
serviceName: cockroachdb
replicas: 3
replicas: 1
updateStrategy:
type: RollingUpdate
podManagementPolicy: "Parallel"
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 0497966

Please sign in to comment.