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
Validated this issue does appear in OCP 3.11.16 Switching to a Deployment does result in a successful deployment with DNS values injected
Seems like this is a validation issue with DeploymentConfigs. Sending to Master.
https://github.com/openshift/origin/pull/21578
The PR still open.
It's valid on v3.11.69 now. When has this issue been fixed ? the errata is not updated when the enhancement is merged.
The issue has fixed: [zhouying@dhcp-140-138 cucushift]$ oc get po httpd-3-wrd69 -o json |jq ".spec.dnsConfig" { "nameservers": [ "10.72.17.5" ], "searches": [ "svc.cluster.local", "cluster.local" ] } [zhouying@dhcp-140-138 cucushift]$ oc get po httpd-3-wrd69 -o json |jq ".spec.dnsPolicy" "None" [zhouying@dhcp-140-138 cucushift]$ oc get po NAME READY STATUS RESTARTS AGE httpd-1-build 0/1 Completed 0 25m httpd-3-wrd69 1/1 Running 0 15m [zhouying@dhcp-140-138 cucushift]$ oc version oc v3.11.95 kubernetes v1.11.0+d4cacc0 openshift v3.11.95