Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinimumReplicasUnavailable #47

Closed
asifiqbal opened this issue Jan 16, 2023 · 3 comments
Closed

MinimumReplicasUnavailable #47

asifiqbal opened this issue Jan 16, 2023 · 3 comments
Labels

Comments

@asifiqbal
Copy link

on episode-4 failing to start mariadb

k8s-manifests % kubectl apply -f mariadb.yml

k8s-manifests % kubectl get deployment -n drupal mariadb
NAME      READY   UP-TO-DATE   AVAILABLE   AGE
mariadb   0/1     1            0           8m17s

k8s-manifests % kubectl describe deployment -n drupal mariadb
Name:                   mariadb
Namespace:              drupal
CreationTimestamp:      Mon, 16 Jan 2023 16:24:51 -0500
Labels:                 <none>
Annotations:            deployment.kubernetes.io/revision: 1
Selector:               app=mariadb
Replicas:               1 desired | 1 updated | 1 total | 0 available | 1 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:  app=mariadb
  Containers:
   mariadb:
    Image:      mariadb:10.5
    Port:       3306/TCP
    Host Port:  0/TCP
    Limits:
      cpu:     2
      memory:  512Mi
    Requests:
      cpu:     500m
      memory:  256Mi
    Environment:
      MYSQL_DATABASE:              drupal
      MYSQL_USER:                  drupal
      MYSQL_PASSWORD:              drupal
      MYSQL_RANDOM_ROOT_PASSWORD:  yes
    Mounts:
      /var/lib/mysql/ from database (rw)
  Volumes:
   database:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  mariadb-pvc
    ReadOnly:   false
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Available      False   MinimumReplicasUnavailable
  Progressing    True    ReplicaSetUpdated
OldReplicaSets:  <none>
NewReplicaSet:   mariadb-7b6c4ffbff (1/1 replicas created)
Events:
  Type    Reason             Age    From                   Message
  ----    ------             ----   ----                   -------
  Normal  ScalingReplicaSet  8m47s  deployment-controller  Scaled up replica set mariadb-7b6c4ffbff to 1

Any idea what I am doing wrong?

@asifiqbal
Copy link
Author

I see the service type is ClusterIP. Do I need to change it to NodePort? I am using DigitalOcean for my control plane since I have no credit for Linode.

k8s-manifests % kubectl get svc -n drupal mariadb
NAME      TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
mariadb   ClusterIP   10.245.122.64   <none>        3306/TCP   23m

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@stale stale bot added the stale label Jun 18, 2023
@github-actions
Copy link

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant