Can you try from one of your nodes to reach the nameserver directly and via
the proxy?
dig @<your master ip> kubernetes.default.svc.cluster.local
dig @172.30.0.1 kubernetes.default.svc.cluster.local
On Feb 10, 2016, at 8:40 AM, Alejandro Nieto Boza <[email protected]> wrote:
It's like you said.
Test logs:
# oc logs test
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0curl: (6) Could not resolve host: kubernetes; Unknown error
Test2 logs:
# oc logs test2
nameserver "172.30.0.1"
nameserver "another-ip"
# oc get svc/kubernetes -n default
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR
AGE
kubernetes "172.30.0.1" <none> 443/TCP,53/UDP,53/TCP <none>
92d
search test.svc.cluster.local svc.cluster.local cluster.local test.es
options ndots:5
2016-02-10 14:01 GMT+01:00 Clayton Coleman <[email protected]>:
> That seems to indicate that inside the deployment container DNS is not
> working. Can you do the following to check:
>
> oc run --image centos:7 test --generator=run-pod/v1 --restart=Never --
> curl https://kubernetes
> oc logs test
>
> And then
>
> oc run --image centos:7 test2 --generator=run-pod/v1 --restart=Never
> -- cat /etc/resolv.conf
> oc logs test2
>
> The latter should have a nameserver pointing to the master by its service
> IP - the command:
>
> oc get svc/kubernetes -n default
>
> Should show that same IP
>
> On Feb 10, 2016, at 7:39 AM, Alejandro Nieto Boza <[email protected]>
> wrote:
>
> Hi,
>
> I've been following the following steps to deploy metrics:
>
> https://docs.openshift.org/latest/install_config/cluster_metrics.html
>
> When I run the following command:
>
>
> oc process -f metrics.yaml -v \
> HAWKULAR_METRICS_HOSTNAME=hawkular-metrics.example.com,USE_PERSISTENT_STORAGE=false
> \
> | oc create -f -
>
>
> I get the following error:
>
> Creating the Cassandra Certificate Secrets configuration json file
> +++ base64
> ++++ echo hawkular-cassandra
> +++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra.truststore
> +++ base64
> ++++ echo RjR--747mUzmTS-
> +++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra.pem
> ++ echo
> ++ echo 'Creating the Cassandra Certificate Secrets configuration json
> file'
> ++ cat
> +++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra.cert
> +++ base64 -w 0 /etc/deploy/_output/hawkular-cassandra-ca.cert
> Creating Hawkular Metrics & Cassandra Secrets
> ++ echo 'Creating Hawkular Metrics & Cassandra Secrets'
> ++ oc create -f /etc/deploy/_output/hawkular-metrics-secrets.json
> unable to connect to a server to handle "secrets": Get
> https://kubernetes.default.svc:443/api: dial tcp: lookup
> kubernetes.default.svc: no such host
>
>
>
>
> # oc get pods
> NAME READY STATUS RESTARTS AGE
> metrics-deployer-7gcpd 0/1 Error 0 39m
>
>
> How can I know if my kubernetes master URL is
> https://kubernetes.default.svc:443 or is another URL?
>
> My Openshift installation isn't an update.
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users