Open
Description
when i run this:
k8s::server::node_on_server: true
k8s::server::generate_ca: true
k8s::server::etcd::generate_ca: true
k8s::server::manage_kubeadm: true
k8s::server::apiserver::advertise_address: "%{facts.networking.interfaces.enp0s8.ip}"
k8s::server::resources::manage_flannel: false
class { 'k8s':
container_manager => 'containerd',
etcd_version => '3.3.25',
manage_firewall => true,
manage_kube_proxy => true,
master => 'https://controller-0.example.com:6443',
role => 'server',
version => '1.25.6',
service_cluster_cidr => '172.20.0.0/20',
cluster_cidr => '172.20.16.0/20',
puppetdb_discovery => true,
native_packaging => 'package',
}
i get this:
root@controller-0:~# puppet agent -t
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error:
Error while evaluating a Resource Statement,
Cannot alias Package[kubernetes-kube-controller-manager] to [nil, "kubernetes-server", nil] at
(file: /etc/puppetlabs/code/environments/production/modules/k8s/manifests/binary.pp, line: 42);
resource ["Package", nil, "kubernetes-server", nil] already declared (file: /etc/puppetlabs/code/environments/production/modules/k8s/manifests/binary.pp, line: 42)
(file: /etc/puppetlabs/code/environments/production/modules/k8s/manifests/binary.pp, line: 42, column: 7)
(file: /etc/puppetlabs/code/environments/production/modules/k8s/manifests/server/controller_manager.pp, line: 20) on node controller-0.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
i think this might somehow connect to the k8s::binary define and with setting a different title and name for the package resource in it. but i don't know how to fix it, because i don't know why title and name are different in the first place.
puppet-k8s/manifests/binary.pp
Lines 42 to 45 in a444fdf
used os:
root@controller-0:~# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy