-
-
Save viveksinghggits/70a4f428ed2a45ac4d0a46467c566c6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"containers": [ | |
{ | |
"command": [ | |
"bash", | |
"-o", | |
"errexit", | |
"-o", | |
"pipefail", | |
"-c", | |
"host='mongo-logical-mongodb-0.mongo-logical-mongodb-headless.mongodb-logical.svc.cluster.local'\ndbPassword='QycYKoy8vP'\ndump_cmd=\"mongodump --oplog --gzip --archive --host ${host} -u root -p ${dbPassword}\"\n${dump_cmd} | kando location push --profile '{\"Location\":{\"type\":\"s3Compliant\",\"bucket\":\"mikemushu\",\"endpoint\":\"\",\"prefix\":\"k10/10a4dd6d-1d26-4593-a8b7-a9ae70be35af/migration\",\"region\":\"us-west-2\"},\"Credential\":{\"Type\":\"secret\",\"KeyPair\":null,\"Secret\":{\"metadata\":{\"name\":\"k10secret-6ltk9\",\"generateName\":\"k10secret-\",\"namespace\":\"kasten-io\",\"uid\":\"0e775378-2305-4912-9427-e4a29223197f\",\"resourceVersion\":\"53307\",\"creationTimestamp\":\"2024-03-05T22:59:48Z\",\"ownerReferences\":[{\"apiVersion\":\"config.kio.kasten.io/v1alpha1\",\"kind\":\"Profile\",\"name\":\"s3\",\"uid\":\"bb3c9252-5793-44ac-8dd9-2f662d2080e9\"}],\"managedFields\":[{\"manager\":\"dashboardbff-server\",\"operation\":\"Update\",\"apiVersion\":\"v1\",\"time\":\"2024-03-05T22:59:48Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:data\":{\".\":{},\"f:aws_access_key_id\":{},\"f:aws_secret_access_key\":{}},\"f:metadata\":{\"f:generateName\":{},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"bb3c9252-5793-44ac-8dd9-2f662d2080e9\\\"}\":{}}},\"f:type\":{}}}]},\"data\":{\"aws_access_key_id\":\"QUtJQVFPNDVDU1JLREtDQjJUVEM=\",\"aws_secret_access_key\":\"d0pkaVRMWGt4NG51Q0VsZmlRMEFvRStlRXluVWpnckgydjVIWmVzOA==\"},\"type\":\"secrets.kanister.io/aws\"},\"KopiaServerSecret\":null},\"SkipSSLVerify\":false}' --path '/mongodb-replicaset-backups/mongo-logical-mongodb/2024-03-12T20-58-08/rs_backup.gz' -\n" | |
], | |
"image": "viveksinghggits/mongodb:nettools_1", | |
"imagePullPolicy": "IfNotPresent", | |
"name": "container", | |
"resources": {}, | |
"securityContext": { | |
"capabilities": { | |
"drop": [ | |
"MKNOD" | |
] | |
} | |
}, | |
"terminationMessagePath": "/dev/termination-log", | |
"terminationMessagePolicy": "File", | |
"volumeMounts": [ | |
{ | |
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
"name": "kube-api-access-p62gc", | |
"readOnly": true | |
} | |
] | |
} | |
], | |
"dnsPolicy": "ClusterFirst", | |
"enableServiceLinks": true, | |
"imagePullSecrets": [ | |
{ | |
"name": "default-dockercfg-dlb42" | |
} | |
], | |
"nodeName": "ip-10-0-219-17.us-west-2.compute.internal", | |
"preemptionPolicy": "PreemptLowerPriority", | |
"priority": 0, | |
"restartPolicy": "Never", | |
"schedulerName": "default-scheduler", | |
"securityContext": { | |
"seLinuxOptions": { | |
"level": "s0:c26,c15" | |
} | |
}, | |
"serviceAccount": "default", | |
"serviceAccountName": "default", | |
"terminationGracePeriodSeconds": 30, | |
"tolerations": [ | |
{ | |
"effect": "NoExecute", | |
"key": "node.kubernetes.io/not-ready", | |
"operator": "Exists", | |
"tolerationSeconds": 300 | |
}, | |
{ | |
"effect": "NoExecute", | |
"key": "node.kubernetes.io/unreachable", | |
"operator": "Exists", | |
"tolerationSeconds": 300 | |
} | |
], | |
"volumes": [ | |
{ | |
"name": "kube-api-access-p62gc", | |
"projected": { | |
"defaultMode": 420, | |
"sources": [ | |
{ | |
"serviceAccountToken": { | |
"expirationSeconds": 3607, | |
"path": "token" | |
} | |
}, | |
{ | |
"configMap": { | |
"items": [ | |
{ | |
"key": "ca.crt", | |
"path": "ca.crt" | |
} | |
], | |
"name": "kube-root-ca.crt" | |
} | |
}, | |
{ | |
"downwardAPI": { | |
"items": [ | |
{ | |
"fieldRef": { | |
"apiVersion": "v1", | |
"fieldPath": "metadata.namespace" | |
}, | |
"path": "namespace" | |
} | |
] | |
} | |
}, | |
{ | |
"configMap": { | |
"items": [ | |
{ | |
"key": "service-ca.crt", | |
"path": "service-ca.crt" | |
} | |
], | |
"name": "openshift-service-ca.crt" | |
} | |
} | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment