Skip to content

Commit 2be0e4b

Browse files
committed
fix: correct S3 backup path in Velero and cert-manager documentation
1 parent 3569a6c commit 2be0e4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_posts/2023/2023-03-20-velero-and-cert-manager.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ kubectl wait --namespace cert-manager --timeout=15m --for=condition=Ready cluste
8686
Create new certificate and let it sign by Let's Encrypt to validate it:
8787

8888
```bash
89-
if ! aws s3 ls "s3://${CLUSTER_FQDN}/velero/backups" | grep -q velero-weekly-backup-cert-manager; then
89+
if ! aws s3 ls "s3://${CLUSTER_FQDN}/velero/backups/" | grep -q velero-weekly-backup-cert-manager; then
9090
tee "${TMP_DIR}/${CLUSTER_FQDN}/k8s-cert-manager-certificate-production.yml" << EOF | kubectl apply -f -
9191
apiVersion: cert-manager.io/v1
9292
kind: Certificate
@@ -418,7 +418,7 @@ default aws k01.k8s.mylabs.dev/velero Available 2023-03-23 20:16:20
418418
Initiate backup process and save the necessary cert-manager object to S3:
419419

420420
```bash
421-
if ! aws s3 ls "s3://${CLUSTER_FQDN}/velero/backups" | grep -q velero-weekly-backup-cert-manager; then
421+
if ! aws s3 ls "s3://${CLUSTER_FQDN}/velero/backups/" | grep -q velero-weekly-backup-cert-manager; then
422422
velero backup create --labels letsencrypt=production --ttl 2160h0m0s --from-schedule velero-weekly-backup-cert-manager
423423
fi
424424
```

_posts/2025/2025-02-01-eks-auto-cert-manager-velero.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ kubectl label secret --namespace cert-manager letsencrypt-production-dns letsenc
104104
Create a new certificate and have it signed by Let's Encrypt for validation:
105105

106106
```bash
107-
if ! aws s3 ls "s3://${CLUSTER_FQDN}/velero/backups" | grep -q velero-monthly-backup-cert-manager-production; then
107+
if ! aws s3 ls "s3://${CLUSTER_FQDN}/velero/backups/" | grep -q velero-monthly-backup-cert-manager-production; then
108108
tee "${TMP_DIR}/${CLUSTER_FQDN}/k8s-cert-manager-certificate-production.yml" << EOF | kubectl apply -f -
109109
apiVersion: cert-manager.io/v1
110110
kind: Certificate
@@ -539,7 +539,7 @@ default aws k01.k8s.mylabs.dev/velero Available 2025-02-06 06:21:59
539539
Initiate the backup process and store the required cert-manager objects in S3.
540540

541541
```bash
542-
if ! aws s3 ls "s3://${CLUSTER_FQDN}/velero/backups" | grep -q velero-monthly-backup-cert-manager-production; then
542+
if ! aws s3 ls "s3://${CLUSTER_FQDN}/velero/backups/" | grep -q velero-monthly-backup-cert-manager-production; then
543543
velero backup create --labels letsencrypt=production --ttl 2160h --from-schedule velero-monthly-backup-cert-manager-production --wait
544544
fi
545545
```

0 commit comments

Comments
 (0)