Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does kubernetes Deployment automatically create the service like openshift DeploymentConfig does?

I created a deployment using kubernetes Deployment in openshift cluster. i expected it to create the service for all the container ports like openshift DeploymentConfig does. but i did not find any service created by the kubernetes Deployment.

does kubernetes Deployment not create the service automatically like openshift DeploymentConfig does ?

My openshift version is 3.11

like image 250
dsingh Avatar asked Oct 30 '25 07:10

dsingh


1 Answers

Both Deployment and DeploymentConfig does not create the Service component in OpenShift. These component are used for creation of Replication Control of the Pod.

Service has to be configured separately with the selector parameter to point to the specific Pods.

selector: name: as in the deployment or in deploymentConfig.

This link would help you on the same.

https://docs.openshift.com/container-platform/3.3/dev_guide/deployments/how_deployments_work.html#creating-a-deployment-configuration

like image 173
Wasim Ansari Avatar answered Nov 03 '25 03:11

Wasim Ansari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!