Questions tagged [gce-persistent-disk]

27 questions
6
votes
2 answers

how to bound a Persistent volume claim with a gcePersistentDisk?

I would like to bound PersistentVolumeClaim with a gcePersistentDisk PersistentVolume. Below the steps I did for getting that: 1. Creation of the gcePersistentDisk: gcloud compute disks create --size=2GB --zone=us-east1-b gce-nfs-disk 2. Definition…
4
votes
1 answer

Kubernetes ReadOnlyMany + ReadWriteOnce

I'm currently trying to configure a Logstash cluster with Kubernetes and I would like to have each of the logstash nodes mount a volume as read-only with the pipelines. This same volume would then be mounted as read/write on a single management…
CodeCorrupt
  • 175
  • 13
2
votes
1 answer

GKE Regional Disk for Pvc and StorageClass failover

I have one pod which requires a persistent disk. I have 1 pod running on us-central1-a and if that zone goes down I want to migrate to another zone without data loss to another zone (us-central1-*). Is it possible to migrate a pod to another…
2
votes
2 answers

Can 3 replicas use the same PersistentVolume in a StatefulSet in Kubernetes?

I created a StatefulSet for running my NodeJS with 3 replicas and want to attach to a gce disk that can become a data storage for user to upload files. My project naming: carx; Server name: car-server However I got an error while creating the second…
2
votes
2 answers

Map Disks in GCP to OS Disks in Windows

Is there a way to map the disks allocated to a VM in GCP to the disks shown at the OS-level in Windows? In Linux, there are pointers that correspond to the naming we provision in GCP. In Azure, we can use the LUN IDs provided in the Azure portal…
2
votes
0 answers

How to create a bind mount not owned by root using a Container-optimized image in GCE

I'm using the gcloud compute instances create-with-container tool to create a VM in GCE where I want to run a docker image. For this i'm using one of google's container-optimized OS images. I'm trying to attach a disk because I need to have…
2
votes
1 answer

GCE Kubernetes: Persistent disk and Persistent Volume claim

Approach 1 (kubernetes volume is attached to google persistent disk, kubernetes volume claim is attached to kubernetes volume) apiVersion: v1 kind: PersistentVolume metadata: name: volume-1 spec: storageClassName: "" capacity: storage:…
Ankit Deshpande
  • 3,476
  • 1
  • 29
  • 42
1
vote
2 answers

Initializing a dynamically provisioned shared volume with ReadOnlyMany access mode

My GKE deployment consists of N pods (possibly on different nodes) and a shared volume, which is dynamically provisioned by pd.csi.storage.gke.io and is a Persistent Disk in GCP. I need to initialize this disk with data before the pods go live. My…
1
vote
0 answers

How can a GKE persistent volume's provisioner be changed to use a CSI driver?

Our GKE PersistentVolumes were provisioned with kubernetes.io/gce-pd, but we want to take snapshots of our PVs using VolumeSnapshot. The documentation states that "VolumeSnapshot support is only available for CSI drivers." In order to use…
1
vote
0 answers

Google Compute Engine fails to reboot with error Unrecognized mount option "NOFAIL_OPTION" or missing value

I have two disks attached to instance. one of them is presistent disk that was created along with instance (20GB). Another one created and attached later(pd-balanced). I have created a swapfile in the second disk as I wanted more space(not sure if…
0
votes
0 answers

SQL Server on Kubernetes ReadWriteOnce.. multiple nodes but only one can attach to PersistentVolume?

2 nodes on GKE. Persistent Disk on GCE (outside of cluster) being used as PV. Want to create a StatefulSet of SQL Server following the Microsoft documentation. This will generate 1 SQL Server container in one pod per node. So total 1 instance spread…
0
votes
2 answers

GKE Volume Attach/mount error for regional persistent disk

I am struggling with a volumeattach error. I have a regional persistent disk which is in the same GCP project as my regional GKE cluster. My regional cluster is in europe-west2 with nodes in europe-west2-a, b and c. the regional disk is replicated…
0
votes
0 answers

Unwanted mounting of persistent disk to /home/jupyter

I'm attaching a persistent disk to my VM that uses a deep learning image (the one I've been using is common-cu113-v20221017-ubuntu-2004), but the disk (which shows up under /dev/sdb is automatically being mounted at the mount point /home/jupyter.…
nViz
  • 59
  • 1
  • 7
0
votes
1 answer

how to migrate VM data from a disk to kubernetes cluster

how to migrate VM data from a disk to a Kubernetes cluster? I have a VM with three disks attached mounted to it, each having data that needs to be migrated to a Kubernetes cluster to be attached to database services in statefulset. This link…
devops-admin
  • 1,447
  • 1
  • 15
  • 26
0
votes
0 answers

GCE Ram performance restriction

I'm wondering how GCE instances ram's IOPS and throughput was restricted? I can see disk IOPS and throughput limit by [1], but there seems no doc telling that instance ram's limit. [1] https://cloud.google.com/compute/docs/disks/performance
1
2