Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PE: Storagebox #29

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
47f96e7
cassandra
adamancini Dec 5, 2024
1796519
take tls through kots config
adamancini Dec 9, 2024
9dc64e1
update chart version
adamancini Dec 10, 2024
7448b05
also take the store passwords
adamancini Dec 10, 2024
cfbd143
add nfs-server to umbrella chart
adamancini Dec 10, 2024
8f4b724
update chart version
adamancini Dec 10, 2024
a2fc9dc
fix tls certs
adamancini Dec 10, 2024
e2854a9
remove ingress-nginx from release
adamancini Dec 11, 2024
2cd0d66
add a postgres nodeport service template
adamancini Dec 11, 2024
5930402
fix postgres nodeport service binding
adamancini Dec 12, 2024
3011622
optionally generate self-signed ca
adamancini Dec 16, 2024
2ec011b
generate ca script
adamancini Dec 30, 2024
acbf572
we actually need an older version of Cassandra
adamancini Dec 30, 2024
5bccfc3
start doing some optional tls with cassandra
adamancini Dec 30, 2024
8abd9b9
start doing some optional tls with cassandra
adamancini Dec 30, 2024
3ca97f4
add velero spec
adamancini Jan 21, 2025
087199b
update to EC 1.20+k8s-1.30-rc1
adamancini Jan 21, 2025
941c29d
update to replicated sdk 1.0.0
adamancini Jan 21, 2025
abee40f
update to replicated sdk 1.0.0
adamancini Jan 21, 2025
0fa76b4
rename app to
adamancini Jan 21, 2025
937d2f7
rename app to storagebox
adamancini Jan 21, 2025
c878949
rename app to storagebox
adamancini Jan 21, 2025
04422f0
rename app to storagebox
adamancini Jan 21, 2025
be41065
fix minio values indent
adamancini Jan 21, 2025
86e0407
rename app to storagebox
adamancini Jan 21, 2025
8ad86d0
rename app to storagebox
adamancini Jan 21, 2025
58d9cef
update minio chart name
adamancini Jan 22, 2025
1a17d43
update values
adamancini Jan 22, 2025
66327fd
update minio tenant config
adamancini Jan 22, 2025
db82f98
bump EC version to GA release
adamancini Jan 23, 2025
7a3ee96
bump EC version to 1.22.0+k8s-1.30
adamancini Jan 28, 2025
e61d306
configure new DR in EC
adamancini Jan 28, 2025
42daa59
add self-signed clusterissuer
adamancini Feb 4, 2025
e6d08be
deploy minio tenant with ingress rules
adamancini Feb 4, 2025
869541a
upgrade EC and include velero backup
adamancini Feb 10, 2025
f55210c
feat(storagebox): add postgres db init secret
DexterYan Feb 13, 2025
25252bf
add chart enable configurable
DexterYan Feb 14, 2025
932249d
Merge pull request #34 from replicatedhq/dx/update-storagebox
adamancini Feb 14, 2025
50f6c19
add Backup and Restore for velero
adamancini Feb 14, 2025
0f566f3
add Backup and Restore for velero
adamancini Feb 14, 2025
85df3e0
reorder the options to fold better in vscode
adamancini Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add nfs-server to umbrella chart
  • Loading branch information
adamancini committed Dec 10, 2024
commit cfbd143680fa3b06b5d1dd69694953ae2a09868e
39 changes: 38 additions & 1 deletion applications/cassandra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endef

# Target to package charts and update versions
.PHONY: package-and-update
package-and-update: add-helm-repositories
package-and-update: clean add-helm-repositories update-dependencies
@for chart in $(HELM_CHARTS_DIR)/*; do \
echo "Packaging $$chart"; \
helm package $$chart -u -d $(KOTS_DIR); \
Expand All @@ -36,3 +36,40 @@ package-and-update: add-helm-repositories
sed -i '' 's|chartVersion: [0-9a-zA-Z.-]*|chartVersion: '$$version'|g' $(KOTS_DIR)/$$chart_name-chart.yaml; \
done


.PHONY: clean
clean:
@echo "Cleaning up build artifacts in $(KOTS_DIR)"
@rm -f $(KOTS_DIR)/*.tgz


.PHONY: update-dependencies
update-dependencies:
@for chart_dir in $(HELM_CHARTS_DIR)/*; do \
if [ -d $$chart_dir ]; then \
echo "Updating dependencies for $$chart_dir"; \
helm dependency update $$chart_dir; \
fi; \
done


# Target to add Helm repositories from Chart.yaml files
.PHONY: add-helm-repositories
add-helm-repositories:
@for chart_file in $(HELM_CHARTS_DIR)/*/Chart.yaml; do \
echo "Processing $$chart_file"; \
repo_name=$$(grep '^name:' $$chart_file | awk '{print $$2}'); \
grep 'dependencies:' -A 10 $$chart_file | grep 'repository:' | awk '{print $$2}' | while read repo; do \
if ! helm repo list | grep -q "^$$repo_name[[:space:]]"; then \
echo "Adding Helm repo $$repo_name from $$repo"; \
helm repo add $$repo_name $$repo || true; \
fi; \
done; \
done
@helm repo update


.PHONY: release
release: package-and-update
@echo "Creating a new release with Replicated"
@replicated release create --yaml-dir $(KOTS_DIR) --promote Unstable
7 changes: 5 additions & 2 deletions applications/cassandra/charts/cassandra/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ dependencies:
- name: cassandra
repository: https://charts.bitnami.com/bitnami
version: 12.0.5
digest: sha256:b84ed4fa3a096c7a97b6ed26cbeddf0ed93f517cb6d4acd69831df69fb1df5cc
generated: "2024-12-09T14:32:04.086522-05:00"
- name: nfs-server
repository: https://charts.obeone.cloud
version: 1.1.2
digest: sha256:7475db601598f541a0af0cdb0e58a396565551c3f9fe1903c8ec1c5004bbca58
generated: "2024-12-10T11:06:38.043682-05:00"
4 changes: 4 additions & 0 deletions applications/cassandra/charts/cassandra/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ dependencies:
version: 12.0.5
repository: https://charts.bitnami.com/bitnami
condition: cassandra.enabled
- name: nfs-server
version: "^1.1.2"
repository: https://charts.obeone.cloud
condition: nfs-server.enabled
58 changes: 58 additions & 0 deletions applications/cassandra/charts/cassandra/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
replicated:
enabled: true
nfs-server:
enabled: true
env:
NFS_EXPORT_0: /shared *(rw,sync,no_subtree_check,no_root_squash)
service:
main:
enabled: true
primary: true
type: NodePort
externalTrafficPolicy: Local
ports:
http:
enabled: false
nfs-111:
enabled: true
port: 111
protocol: TCP
nfsd:
enabled: true
primary: true
port: 2049
protocol: TCP
nfs-32765:
enabled: true
port: 32765
protocol: TCP
nfs-32767:
enabled: true
port: 32767
protocol: TCP

udp:
enabled: true
type: NodePort
externalTrafficPolicy: Local
ports:
nfs-111-udp:
enabled: true
port: 111
protocol: UDP
nfsd-udp:
enabled: true
port: 2049
protocol: UDP
nfs-32765-udp:
enabled: true
port: 32765
protocol: UDP
nfs-32767-udp:
enabled: true
port: 32767
protocol: UDP
persistence:
shared:
enabled: true
type: emptyDir
mountPath: /shared

cassandra:
enabled: true

Expand Down
19 changes: 19 additions & 0 deletions applications/cassandra/kots/cassandra-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ spec:
values:
replicated:
enabled: true
nfs-server:
enabled: true
persistence:
shared:
enabled: true
type: emptyDir
mountPath: repl{{ ConfigOption "nfs_share" }}
env:
NFS_EXPORT_0: repl{{ ConfigOption "nfs_share" }} *(rw,sync,no_subtree_check,no_root_squash)
cassandra:
enabled: true
truststore_password : repl{{ ConfigOption "cassandra_truststore_password" }}
Expand All @@ -32,3 +41,13 @@ spec:
repl{{ ConfigOptionData `cassandra_tls_key` | nindent 12 }}
ca: |
repl{{ ConfigOptionData `cassandra_tls_ca` | nindent 12 }}
postgres:
enabled: true
embedded:
enabled: true
auth:
username: repl{{ ConfigOption "postgres_user" }}
password: repl{{ ConfigOption "postgres_password" }}
initdb:
database: repl{{ ConfigOption "postgres_db" }}
owner: repl{{ ConfigOption "postgres_db_owner" }}
37 changes: 37 additions & 0 deletions applications/cassandra/kots/kots-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,40 @@ spec:
default: ""
required: true
description: The root CA to use for the Cassandra client encryption
- name: postgres_settings
title: Postgres database settings
items:
- name: postgres_user
title: Postgres User
type: text
default: postgres
required: true
description: The username for the Postgres user
- name: postgres_password
title: Postgres Password
type: text
default: postgres
required: true
description: Postgres user password
secret: true
- name: postgres_db
title: Postgres Database Name
type: text
default: postgres
required: true
description: The name of the Postgres database
- name: postgres_db_owner
title: Postgres Database Owner
type: text
default: postgres
required: true
description: The name of the Postgres database owner
- name: nfs_settings
title: NFS Server settings
items:
- name: nfs_share
title: NFS Share
type: text
default: /shared
required: true
description: The NFS share to mount