-
Couldn't load subscription status.
- Fork 42
✨ Set up default environment for kubectl, crictl, etc. #405
✨ Set up default environment for kubectl, crictl, etc. #405
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cprivitere The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Update docker and k8s debian key registrations Add crictl default container runtime configuration Install kubetail on ubuntu 20+ export DEBIAN_FRONTEND=noninteractive once Configure containerd to use Systemd cgroups Configure containerd to use the pause image of installed k8s Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
| if [ -f "/run/kubeadm/kubeadm.yaml" ]; then | ||
| export KUBECONFIG=/etc/kubernetes/admin.conf | ||
| mkdir -p /root/.kube && cp -f $${KUBECONFIG} /root/.kube/config | ||
| echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /root/.bashrc |
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 think we can remove this line in favor of the /root/.kube/config file
| apt-get remove -y docker docker-engine docker.io containerd runc | ||
| apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release linux-generic jq | ||
| major_vers=$(lsb_release -r | awk '{ print $2 }' | cut -d. -f1) | ||
| if [[ "$major_vers" -ge 20 ]]; then |
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.
Noting that this is going to only work on Ubuntu
Fixes #403 Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
…luster-api-provider-packet into cprivitere/issue403
|
Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages. The list of commits with invalid commit messages:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
What this PR does / why we need it:
Update docker and k8s debian key registrations
Add crictl default container runtime configuration
Install kubetail on ubuntu 20+
export DEBIAN_FRONTEND=noninteractive once
Configure containerd to use Systemd cgroups
Configure containerd to use the pause image of installed k8s
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #403