The collection includes a variety of Ansible content to help automate the management of applications in Kubernetes and OpenShift clusters, as well as the provisioning and maintenance of clusters themselves.
Other
218
stars
140
forks
source link
Deploy coredns with kubernetes.core.k8s template fails. #539
SUMMARY
Deploy coredns with kubernetes.core.k8s template fails.
ISSUE TYPE
COMPONENT NAME
kubernetes.core.k8s
ANSIBLE VERSION
ansible 2.9.25 config file = /etc/bluebanquise/ansible.cfg configured module search path = ['/usr/share/ceph-ansible/library'] ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible python version = 3.6.8 (default, Sep 9 2021, 07:49:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]
COLLECTION VERSION
kubernetes-core-2.2.3
CONFIGURATION
ANSIBLE_PIPELINING(/etc/bluebanquise/ansible.cfg) = True ANSIBLE_SSH_ARGS(/etc/bluebanquise/ansible.cfg) = -C -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey DEFAULT_CALLBACK_WHITELIST(/etc/bluebanquise/ansible.cfg) = ['profile_roles'] DEFAULT_FORKS(/etc/bluebanquise/ansible.cfg) = 32 DEFAULT_HOST_LIST(/etc/bluebanquise/ansible.cfg) = ['/etc/bluebanquise/inventory', '/etc/bluebanquise/internal'] DEFAULT_JINJA2_EXTENSIONS(/etc/bluebanquise/ansible.cfg) = jinja2.ext.loopcontrols DEFAULT_LOAD_CALLBACK_PLUGINS(/etc/bluebanquise/ansible.cfg) = True DEFAULT_MANAGED_STR(/etc/bluebanquise/ansible.cfg) = Ansible managed file, do not edit DEFAULT_MODULE_PATH(/etc/bluebanquise/ansible.cfg) = ['/usr/share/ceph-ansible/library'] DEFAULT_ROLES_PATH(/etc/bluebanquise/ansible.cfg) = ['/etc/bluebanquise/roles/core', '/etc/bluebanquise/roles/addons', '/etc/bluebanquise/roles/customs', '/etc/bluebanquise/roles/advanced-c> DEFAULT_SELINUX_SPECIAL_FS(/etc/bluebanquise/ansible.cfg) = ['ceph'] DEFAULT_STDOUT_CALLBACK(/etc/bluebanquise/ansible.cfg) = yaml DEFAULT_VAULT_PASSWORD_FILE(/etc/bluebanquise/ansible.cfg) = /root/.vault_password_file DEPRECATION_WARNINGS(/etc/bluebanquise/ansible.cfg) = False RETRY_FILES_ENABLED(/etc/bluebanquise/ansible.cfg) = False
OS / ENVIRONMENT
Red Hat Enterprise Linux release 8.5 (Ootpa)
STEPS TO REPRODUCE
coredns.yml.j2:
apiVersion: apps/v1 kind: Deployment metadata: labels: k8s-app: "{{ kubernetes.service.coredns_local.name }}" name: "{{ kubernetes.service.coredns_local.name }}" namespace: kube-system spec: progressDeadlineSeconds: 600 replicas: 2 revisionHistoryLimit: 10 selector: matchLabels: k8s-app: "{{ kubernetes.service.coredns_local.name }}" strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 1 type: RollingUpdate template: metadata: creationTimestamp: null labels: k8s-app: "{{ kubernetes.service.coredns_local.name }}" spec: containers:
apiVersion: v1 kind: Service metadata: annotations: prometheus.io/port: "9153" prometheus.io/scrape: "true" labels: k8s-app: "{{ kubernetes.service.coredns_local.name }}" kubernetes.io/cluster-service: "true" kubernetes.io/name: CoreDNS name: "{{ kubernetes.service.coredns_local.name }}" namespace: kube-system spec: clusterIP: "{{ kubernetes.service.coredns_local.cluster_ip }}" loadBalancerIP: "{ kubernetes.service.coredns_local.ip }}" ports:
EXPECTED RESULTS
The coredns resources deployed
ACTUAL RESULTS
Error when deploying the coredns resources