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

Statefulset the first pod is orphaned #185

Open
bruj0 opened this issue Jun 3, 2017 · 0 comments
Open

Statefulset the first pod is orphaned #185

bruj0 opened this issue Jun 3, 2017 · 0 comments

Comments

@bruj0
Copy link
Contributor

bruj0 commented Jun 3, 2017

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?

@bruj0 bruj0 changed the title Statefulset the first pod is horphaned Statefulset the first pod is orphaned Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant