kz8s/tack

Statefulset the first pod is orphaned

bruj0 opened this issue · 0 comments

bruj0 commented

Hi, im trying to create a stateful set to host postgresql.
The pods are created but the first pod, ie pgset-0 doesnt show up as created:

Replicas:		2 desired | 0 total
Pods Status:		0 Running / 0 Waiting / 0 Succeeded / 0 Failed

With error:

 FirstSeen	LastSeen	Count	From		SubObjectPath	Type		Reason			Message
  ---------	--------	-----	----		-------------	--------	------			-------
  4m		4m		1	statefulset			Normal		SuccessfulCreate	create Pod pgset-0 in StatefulSet pgset successful
  1m		26s		17	statefulset			Warning		FailedCreate		create Pod pgset-0 in StatefulSet pgset failed error: The POST operation against Pod could not be completed at this time, please try again.

However pgset-0 is running:

NAME      READY     STATUS    RESTARTS   AGE
pgset-0   1/1       Running   0          6m

Name:		pgset-0
Namespace:	siteadmin-deployment
Node:		ip-10-0-10-98.ec2.internal/10.0.10.98
Start Time:	Fri, 02 Jun 2017 23:32:44 -0300
Labels:		app=pgset
		name=pgset-master
Annotations:	kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"StatefulSet","namespace":"siteadmin-deployment","name":"pgset","uid":"ec0b045a-4804-11e7-b856-0a17c7a5d990...
		pod.beta.kubernetes.io/hostname=pgset-0
		pod.beta.kubernetes.io/subdomain=pgset
Status:		Running
IP:		10.2.75.3
Controllers:	StatefulSet/pgset

Any idea what could be the problem?