ngoprek-kubernetes / examples

Contoh-contoh snippet Kubernetes yaml dari buku "Kubernetes untuk Pemula" karya Giri Kuncoro, Aris Risdianto, dan Onno W. Purbo
Apache License 2.0
10 stars 3 forks source link

Tidak bisa deploy manifest 8b di AWS EKS #7

Open za opened 4 months ago

za commented 4 months ago

Halo,

Saya mencoba melakukan deployment manifest 8b di AWS EKS dan mendapati ERROR berikut:

$ kubectl apply -f bab-08b-database-persistent-volume-claim.yaml 
persistentvolumeclaim/database-persistent-volume-claim created
$ kubectl describe persistentvolumeclaim database-persistent-volume-claim 

Name:          database-persistent-volume-claim
Namespace:     default
StorageClass:
Status:        Pending
...
Events:
  Type    Reason         Age                From                         Message
  ----    ------         ----               ----                         -------
  Normal  FailedBinding  19s (x3 over 48s)  persistentvolume-controller  no persistent volumes available for this claim and no storage class is set

Sementara, untuk deployment di GCP GKE, tidak ada masalah.

$ kubectl apply -f bab-08b-database-persistent-volume-claim.yaml 
persistentvolumeclaim/database-persistent-volume-claim created

$ kubectl apply -f bab-08c-postgres-kudemo-deployment.yaml 
deployment.apps/postgres-kudemo-deployment created

$ kubectl get pods
NAME                                          READY   STATUS    RESTARTS   AGE
postgres-kudemo-deployment-67f6d984dd-mr2sw   1/1     Running   0          88s
za commented 3 months ago

cc: kak @ariscahyadi @girikuncoro