find a bug about readiness_probe port type error
See original GitHub issueerror:
Reason: Unprocessable Entity
HTTP response headers: HTTPHeaderDict({'Date': 'Fri, 16 Jun 2017 04:24:27 GMT', 'Content-Length': '799', 'Content-Type': 'application/json'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"ReplicationController \"657c4cf604e335548521b060887f3cd6\" is invalid: spec.template.spec.containers[0].readinessProbe.httpGet.port: Invalid value: \"80\": must contain at least one letter or number (a-z, 0-9)","reason":"Invalid","details":{"name":"657c4cf604e335548521b060887f3cd6","kind":"ReplicationController","causes":[{"reason":"FieldValueInvalid","message":"Invalid value: \"80\": must contain at least one letter or number (a-z, 0-9)","field":"spec.template.spec.containers[0].readinessProbe.httpGet.port"},{"reason":"FieldValueInvalid","message":"Invalid value: \"80\": must contain at least one letter or number (a-z, 0-9)","field":"spec.template.spec.containers[0].readinessProbe.httpGet.port"}]},"code":422}
code:
rc = client.get_rc(tenant_id, rc_id)
rc.spec.replicas = cur_replicas
client.put_rc(tenant_id, rc_id, rc)
bug reason:
'readiness_probe': {'_exec': None,
'failure_threshold': 3,
'http_get': {'host': None,
'http_headers': None,
'path': '/wp-admin/install.php',
'port': '80',
'scheme': 'HTTP'},
'initial_delay_seconds': 1,
'period_seconds': 3,
'success_threshold': 1,
'tcp_socket': None,
'timeout_seconds': 20},
Is printed above the get rc entities, including readiness_probe port field from json python entity type is not correct.[0-9] should be converted to type int, [a-z] should be converted to character.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Configure Liveness, Readiness and Startup Probes
Another kind of liveness probe uses an HTTP GET request. ... to the server that is running in the container and listening on...
Read more >Troubleshooting RTF error Readiness probe failed: 409
An application deployed to a Runtime Fabric cluster fails to deploy with the message "Readiness probe failed: 409: <html> <head> <meta http-equiv="Content-Type" ...
Read more >Kubernetes Readiness Probes | Practical Guide - Komodor
What is a Readiness Probe. Distributed systems are complex. They have many moving parts, and when one part experiences a problem, other parts...
Read more >Readiness Probe fails but Port-forward to service works [closed]
question is, why pods are serving traffic when readiness probe is failing. PS: I have created cluster on my machine using Kind. kubernetes ......
Read more >How to use kubernetes probes-part 14 - YouTube
Kubernetes Probes- livenessProbe, readinessProbe, startupProbe |How to use kubernetes ... In this lab session, we are going to see - 1.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mbohlool I know change to
'80'
to80
, but get the port from ‘get rc’ method show port is‘port’
.@mbohlool yeah,thank you.