{"id":17954111,"url":"https://github.com/uditgaurav/gcp-disk-mount","last_synced_at":"2025-07-20T08:39:02.139Z","repository":{"id":194282710,"uuid":"690490749","full_name":"uditgaurav/gcp-disk-mount","owner":"uditgaurav","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-25T08:11:29.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T16:41:54.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uditgaurav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-12T09:48:14.000Z","updated_at":"2023-09-22T00:41:27.000Z","dependencies_parsed_at":"2024-10-29T10:57:33.718Z","dependency_job_id":null,"html_url":"https://github.com/uditgaurav/gcp-disk-mount","commit_stats":null,"previous_names":["uditgaurav/gcp-disk-mount"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uditgaurav/gcp-disk-mount","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uditgaurav%2Fgcp-disk-mount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uditgaurav%2Fgcp-disk-mount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uditgaurav%2Fgcp-disk-mount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uditgaurav%2Fgcp-disk-mount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uditgaurav","download_url":"https://codeload.github.com/uditgaurav/gcp-disk-mount/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uditgaurav%2Fgcp-disk-mount/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266093055,"owners_count":23875548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T10:10:14.749Z","updated_at":"2025-07-20T08:39:02.073Z","avatar_url":"https://github.com/uditgaurav.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Mount Path Setup\n\n| Environment Variable | Description                                                   | Example Value        |\n|----------------------|---------------------------------------------------------------|----------------------|\n| `VM_USER`            | Username for the VM you are connecting to.                    | `username`           |\n| `INSTANCE_NAME`      | Name of the Google Compute Engine instance.                   | `my-instance`        |\n| `ZONE`               | The zone where your Google Compute Engine instance is located.| `us-central1-a`      |\n| `DEVICE_NAME`            | Identifier for the disk to be mounted.                        | `persistent-disk-1`  |\n| `MOUNT_POINT`        | Directory where the disk will be mounted.                     | `/home/user/mount_point` |\n\n## Sample Pod\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\n  name: my-pod\n  namespace: hce\nspec:\n  containers:\n    - name: my-container\n      image: uditgaurav/gcp:0.1.0\n      imagePullPolicy: Always\n      command: [\"/bin/sh\", \"-c\"]\n      args: [\"sleep 10000\"]\n      env:\n        - name: VM_USER\n          value: \"uditgaurav\"\n        - name: INSTANCE_NAME\n          value: \"gke-cluster-1-default-pool-c742a4dd-3mnf\"\n        - name: ZONE\n          value: \"us-central1-c\"\n        - name: DEVICE_NAME\n          value: \"persistent-disk-1\"\n        - name: MOUNT_POINT\n          value: \"/home/uditgaurav/mydisk\"\n      volumeMounts:\n        - name: cloud-secret-volume\n          mountPath: /etc/cloud-secret\n  volumes:\n    - name: cloud-secret-volume\n      secret:\n        secretName: cloud-secret\n\n```\n\n## Sample Probe\n\nHere is a sample probe reference to mount the disk path.\n\n```yaml\nprobe:\n    - name: disk-mount\n    type: cmdProbe\n    mode: EOT\n    runProperties:\n        probeTimeout: 60s\n        retry: 0\n        interval: 1s\n        stopOnFailure: true\n    cmdProbe/inputs:\n        command: ./usr/local/bin/run_in_pod.sh\n        source:\n        image: docker.io/chaosnative/gcp:0.1.0\n        inheritInputs: false\n        env:\n          - name: VM_USER\n            value: uditgaurav\n          - name: INSTANCE_NAME\n            value: gke-cluster-1-default-pool-c742a4dd-3mnf\n          - name: ZONE\n            value: us-central1-c\n          - name: DEVICE_NAME\n            value: persistent-disk-1\n          - name: MOUNT_POINT\n            value: /home/uditgaurav/mydisk\n        secrets:\n            - name: cloud-secret\n            mountPath: /etc/\n        comparator:\n        type: string\n        criteria: contains\n        value: Disk mounted successfully\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuditgaurav%2Fgcp-disk-mount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuditgaurav%2Fgcp-disk-mount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuditgaurav%2Fgcp-disk-mount/lists"}