Skip to content

Commit

Permalink
--wip-- [skipci]
Browse files Browse the repository at this point in the history
  • Loading branch information
brettinternet committed Oct 29, 2024
1 parent 8b45fe6 commit 568e041
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
key: AWS_SECRET_ACCESS_KEY
bootstrap:
recovery:
source: &previousCluster postgres16-v6
source: &previousCluster main-postgres16-v1
externalClusters:
- name: *previousCluster
barmanObjectStore:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/main/apps/database/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./cloudnative-pg/ks.yaml
# - ./cloudnative-pg/ks.yaml
- ./dragonfly/ks.yaml
- ./pgadmin/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
capabilities: { drop: ["ALL"] }
resources:
requests:
cpu: 100m
cpu: 50m
limits:
memory: 2Gi
defaultPodOptions:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/main/apps/default/livebook/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
requests:
cpu: 10m
limits:
cpu: 1000m
cpu: 500m
memory: 1Gi
defaultPodOptions:
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ spec:
enabled: true
resources:
requests:
cpu: 50m # unchangable
memory: 128Mi # unchangable
cpu: 100m # unchangable
limits: {}
20 changes: 10 additions & 10 deletions kubernetes/main/apps/rook-ceph/rook-ceph/cluster/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
useAllDevices: false
deviceFilter: sda
config:
osdsPerDevice: "2"
osdsPerDevice: "1"
placement:
mgr: &placement
nodeAffinity:
Expand All @@ -86,7 +86,7 @@ spec:
resources:
mgr:
requests:
cpu: 100m
cpu: 50m
memory: 512Mi
limits:
memory: 2Gi
Expand All @@ -98,13 +98,13 @@ spec:
memory: 1Gi
osd:
requests:
cpu: 500m
memory: 2Gi
cpu: 150m
memory: 1Gi
limits:
memory: 6Gi
memory: 4Gi
mgr-sidecar:
requests:
cpu: 50m
cpu: 20m
memory: 128Mi
limits:
memory: 256Mi
Expand Down Expand Up @@ -162,10 +162,10 @@ spec:
app.kubernetes.io/part-of: *cephFileSystemName
resources:
requests:
cpu: 100m
cpu: 50m
memory: 1Gi
limits:
memory: 4Gi
memory: 2Gi
storageClass:
enabled: true
isDefault: false
Expand Down Expand Up @@ -205,7 +205,7 @@ spec:
port: 80
resources:
requests:
cpu: 100m
cpu: 80m
memory: 1Gi
limits:
memory: 2Gi
Expand All @@ -220,7 +220,7 @@ spec:
reclaimPolicy: Delete
volumeBindingMode: Immediate
parameters:
region: us-east-1
region: us-west-1
ingress:
enabled: true
ingressClassName: internal
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/main/flux/config/flux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
- name: manager
resources:
limits:
cpu: 2000m
cpu: 1000m
memory: 2Gi
target:
kind: Deployment
Expand Down
11 changes: 9 additions & 2 deletions scripts/wipe-disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@

# Run this in the rook ceph tools pod container on each node:

DISK="/dev/sda"; \
# One liner for the rook ceph tools pod container:
# You may also need to remove LVM and device mapper data:
FDISK_BEFORE=$(fdisk -l); \
DISK="/dev/sda"; \
sgdisk --zap-all $DISK; \
dd if=/dev/zero of="$DISK" bs=1M count=100 oflag=direct,dsync; \
blkdiscard $DISK; \
partprobe $DISK
partprobe $DISK; \
ls /dev/mapper/ceph-* | xargs -I% -- dmsetup remove %; \
rm -rf /dev/ceph-*; \
rm -rf /dev/mapper/ceph--*; \
diff <(echo "$FDISK_BEFORE") <(fdisk -l)

# Then, delete the operator pod to re-run the osd-prepare job pods

0 comments on commit 568e041

Please sign in to comment.