Descriptionraffaele spazzoli
2018-10-20 01:03:43 UTC
Description of problem:
I have a deployment config with the following fragment in the pod template:
dnsConfig:
nameservers:
- 172.31.248.117
searches:
- svc.cluster.local
- cluster.local
dnsPolicy: None
the does not get deployed with the following event/error at the deploymentConfig level (i.e. the replication controller is not even created):
Error creating deployer pod: Pod "httpd-4-deploy" is invalid: spec.dnsConfig: Required value: must provide `dnsConfig` when `dnsPolicy` is None
How reproducible: 100%
Steps to Reproduce:
1. oc new-app --name httpd registry.access.redhat.com/rhscl/httpd-24-rhel7~https://github.com/openshift/httpd-ex.git
2. oc patch dc httpd -p '{"spec":{"template":{"spec":{"dnsPolicy": "None", "dnsConfig":{"nameservers":["'$DNS1_IP'"], "searches":["svc.cluster.local","cluster.local"]}}}}}'
Actual results:
the deployment fails.
Expected results:
the deployment should succeed and the pod should be created with a custom /etc/resolv.conf
Description of problem: I have a deployment config with the following fragment in the pod template: dnsConfig: nameservers: - 172.31.248.117 searches: - svc.cluster.local - cluster.local dnsPolicy: None the does not get deployed with the following event/error at the deploymentConfig level (i.e. the replication controller is not even created): Error creating deployer pod: Pod "httpd-4-deploy" is invalid: spec.dnsConfig: Required value: must provide `dnsConfig` when `dnsPolicy` is None How reproducible: 100% Steps to Reproduce: 1. oc new-app --name httpd registry.access.redhat.com/rhscl/httpd-24-rhel7~https://github.com/openshift/httpd-ex.git 2. oc patch dc httpd -p '{"spec":{"template":{"spec":{"dnsPolicy": "None", "dnsConfig":{"nameservers":["'$DNS1_IP'"], "searches":["svc.cluster.local","cluster.local"]}}}}}' Actual results: the deployment fails. Expected results: the deployment should succeed and the pod should be created with a custom /etc/resolv.conf