Comments (4)
If you are trying to achieve the same result as me, which is to pin an earlier PATCH version: 1.24.1, then I have succeeded like so:
roles:
- name: geerlingguy.kubernetes
vars:
kubernetes_version: 1.24
# NOTE(jkinred): The way that the kubernetes role pins versions is not
# functional enough to specify a patch version, we must be explicit here
kubernetes_packages:
- name: kubelet={{ kubernetes_version }}.1-00
state: present
- name: kubectl={{ kubernetes_version }}.1-00
state: present
- name: kubeadm={{ kubernetes_version }}.1-00
state: present
- name: kubernetes-cni
state: present
I have found that this role is built to pin MINOR versions by using e.g. kubernetes_version: 1.23
and this works. The underlying cause is the way that the APT pinning is created with .*
appended.
Specifying a MAJOR.MINOR.PATCH version in kubernetes_version
generates a pinning specification like this:
root@u22:~# cat /etc/apt/preferences.d/kubernetes
Package: kubectl
Pin: version 1.24.1.*
Pin-Priority: 1000
<SNIP>
...noting that the last '.' is a literal dot and a package with version 1.24.1-00
will not match.
from ansible-role-kubernetes.
We are not using the patch level, we just specify kubernetes_version: 1.23
but still the binaries are installed with version 1.24
.
But thanks for the input!
from ansible-role-kubernetes.
We are not using the patch level, we just specify
kubernetes_version: 1.23
but still the binaries are installed with version1.24
. But thanks for the input!
Using the variables as above should still have the same outcome of installing the versions you want.
from ansible-role-kubernetes.
The reason for this was the following issue in Ansible Core: ansible/ansible#77969.
Closing this issue as it was something upstream and nothing in the role.
Thanks for your help @jkinred!
from ansible-role-kubernetes.
Related Issues (20)
- Configure Flannel networking tasks fails on Ubuntu 20.04 HOT 6
- Can't install any K8s version other than 1.20
- No kubeconfig in ~/.kube HOT 5
- Execution issue with kubernetes version HOT 5
- Role failing on play "Configure Calico networking" HOT 3
- Fail to install on fresh OS HOT 11
- Upgrade to new kubernetes versions HOT 3
- CI Currently broken - kubelet won't start in GitHub Actions HOT 18
- Support JoinConfiguration HOT 2
- kube-flannel-rbac.yml not found HOT 3
- Put a hold on packages HOT 2
- Could not find the requested service kubelet: host HOT 2
- User "system:anonymous" cannot get resource "configmaps" in API group HOT 4
- `kubernetes-join-command` not delegated to any host except master HOT 6
- Ubuntu 22.04 needs to Forward IPv4 and letting iptables see bridged traffic HOT 4
- memory, br_netfilter and iptables issues when installing on 2023-05-03 Raspbian 64-bit HOT 4
- Changes to the location of Linux packages for Kubernetes HOT 1
- ansible-lint and molecule/default HOT 1
- Each virtual machine has the same hostname after installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-kubernetes.