Hi,

I currently try to switch from the "Container-Optimized Google Compute 
Engine Images" 
(https://cloud.google.com/compute/docs/containers/container_vms) to the 
"Container-VM" Image 
(https://cloud.google.com/compute/docs/containers/vm-image/#overview). In 
my containers.yaml, I define a volume and a container using the volume.

apiVersion: v1
kind: Pod
metadata:
  name: workhorse
spec:
  containers:
    - name: postgres
      image: postgres:9.5
      imagePullPolicy: Always
      ports:
        - containerPort: 5432
          hostPort: 5432
      volumeMounts:
        - name: postgres-storage
          mountPath: /var/lib/postgresql/data
  volumes:
    - name: postgres-storage
      gcePersistentDisk:
        pdName: disk-name
        fsType: ext4

This setup worked fine with the "Container-Optimized Google Compute Engine 
Images", however fails with the "Container-VM". In the logs, I can see the 
following error:

May 24 18:33:43 battleship kubelet[629]: E0524 18:33:43.405470 629 gce_util.
go:176] Error getting GCECloudProvider while detaching PD "disk-name": 
Failed to get GCE Cloud Provider. plugin.host.GetCloudProvider returned 
<nil> instead

Thanks in advance for any hint!

Fabian

-- 
You received this message because you are subscribed to the Google Groups 
"Containers at Google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-containers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to