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 cf45c7a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 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/rook-ceph/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./rook-ceph/ks.yaml
# - ./rook-ceph/ks.yaml
- ./tools/ks.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: 80m
memory: 512Mi
limits:
memory: 2Gi
Expand All @@ -98,8 +98,8 @@ spec:
memory: 1Gi
osd:
requests:
cpu: 500m
memory: 2Gi
cpu: 300m
memory: 1Gi
limits:
memory: 6Gi
mgr-sidecar:
Expand Down Expand Up @@ -162,10 +162,10 @@ spec:
app.kubernetes.io/part-of: *cephFileSystemName
resources:
requests:
cpu: 100m
cpu: 80m
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
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:
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; \
# You may also need to remove LVM and device mapper data:
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 cf45c7a

Please sign in to comment.