# Copyright 2017 The Openstack-Helm Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: resolv-conf-util spec: template: metadata: labels: version: v0.1.0 name: resolv-conf-util spec: containers: - name: resolv-conf-util image: docker.io/ubuntu:16.04 command: - /bin/bash - -ecx - | cat /etc/resolv.conf > /host/etc/resolv.conf tail -f /dev/null volumeMounts: - mountPath: /host/etc/resolv.conf name: host-resolv-conf volumes: - name: host-resolv-conf hostPath: path: /etc/resolv.conf