-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes Upgrade v1.25 -> v1.29 #279
Conversation
…etrics chart version
Task linked: CU-8687f7bgp Philly-hip |
I tried to updated
The resource is in
So I thought about uninstalling it using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Added a few comments.
So I thought about uninstalling it using
helm
and reinstalling the latest version. Thoughts?
Yes, this sounds good to me! 👍🏻
Also, were you able to get past the aws_profile issue?
kubernetes==12.0.0 | ||
kubernetes-validate~=1.25.0 | ||
kubernetes-validate~=1.29.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the following error running the deploy-cluster.yml
playbook:
TASK [caktus.k8s-web-cluster : Grant access to IAM users if aws] *************************************************************************************************************
fatal: [production]: FAILED! => changed=false
msg: Failed to import the required Python library (kubernetes-validate) on rana.lan's Python /Users/copelco/projects/philly-hip/.direnv/python-3.10/bin/python3.10. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter
kubernetes-validate appears to be installed, but it does throw an exception when importing it:
> python
Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import kubernetes_validate
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/copelco/projects/philly-hip/.direnv/python-3.10/lib/python3.10/site-packages/kubernetes_validate/__init__.py", line 1, in <module>
from .utils import latest_version, validate, validate_file, validate_resource
File "/Users/copelco/projects/philly-hip/.direnv/python-3.10/lib/python3.10/site-packages/kubernetes_validate/utils.py", line 14, in <module>
from referencing import Registry, Resource
File "/Users/copelco/projects/philly-hip/.direnv/python-3.10/lib/python3.10/site-packages/referencing/__init__.py", line 1, in <module>
from referencing._core import ( # noqa: F401
File "/Users/copelco/projects/philly-hip/.direnv/python-3.10/lib/python3.10/site-packages/referencing/_core.py", line 6, in <module>
from attrs import evolve, field
ModuleNotFoundError: No module named 'attrs'
This is confusing to me, because pip freeze reports it's installed:
> pip freeze | grep attrs
attrs==20.3.0
Upgrading the dev requirements ended up working for me:
pip-compile --output-file=requirements/dev/dev.txt requirements/dev/dev.in --upgrade
make setup
But then the tests failed to run (maybe related to wagtail-factories
?), so it may require additional investigation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, the playbook works/runs for me.
I updated the version to |
@copelco tests are passing now. |
…s of no activity anyways
This PR serves as documentation/reference for the Kubernetes upgrade of the
Philly Hip
cluster. The sites on this cluster are all the staging and production.Ingress Nginx
Cert Manager
AWS Fluent Bit
Installing the updated version required running
kubectl -n kube-system get secret | grep fluent
to list secrets. Thenkubectl -n kube-system delete secret sh.helm.release.v1.aws-for-fluent-bit.v1
to delete the old secret. Finally, running the playbook with the updated version.Cloudwatch Metrics
Descheduler Version
Cluster and pods version
Notes:
k8s_aws_fluent_bit_chart_version
- It threw an error.Closes