Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
d855df8b
Verified
Commit
d855df8b
authored
Jan 29, 2022
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
feat(system-upgrades): Manage kubelet by system-upgrades-controller
parent
eeaa9d80
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
infrastructure/system-upgrades/kubelet.yaml
+46
-0
46 additions, 0 deletions
infrastructure/system-upgrades/kubelet.yaml
infrastructure/system-upgrades/kustomization.yaml
+2
-1
2 additions, 1 deletion
infrastructure/system-upgrades/kustomization.yaml
with
48 additions
and
1 deletion
infrastructure/system-upgrades/kubelet.yaml
0 → 100644
+
46
−
0
View file @
d855df8b
---
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
kubelet
namespace
:
system-upgrade
type
:
Opaque
stringData
:
kubelet.service
:
|
[Service]
Environment="KUBELET_AUTHZ_ARGS=--authorization-mode=Webhook --authentication-token-webhook --client-ca-file=/etc/kubernetes/pki/ca.crt"
upgrade.sh
:
|
#!/bin/sh
set -e
set -x
secrets="$(dirname $0)"
cp "$secrets/kubelet.service" /etc/systemd/system/kubelet.service.d/flux.conf
systemctl daemon-reload
systemctl restart kubelet.service
---
apiVersion
:
upgrade.cattle.io/v1
kind
:
Plan
metadata
:
name
:
kubelet-config
namespace
:
system-upgrade
spec
:
concurrency
:
1
nodeSelector
:
matchExpressions
:
-
key
:
feature.node.kubernetes.io/system-os_release.ID
operator
:
In
values
:
-
"
fedora"
-
key
:
feature.node.kubernetes.io/system-os_release.VERSION_ID.major
operator
:
In
values
:
-
"
35"
serviceAccountName
:
system-upgrade
secrets
:
-
name
:
kubelet
path
:
/host/run/system-upgrade/secrets/kubelet
version
:
"
1.0.0"
upgrade
:
image
:
registry.fedoraproject.org/fedora:35
command
:
[
"
chroot"
,
"
/host"
]
args
:
[
"
sh"
,
"
/run/system-upgrade/secrets/kubelet/upgrade.sh"
]
This diff is collapsed.
Click to expand it.
infrastructure/system-upgrades/kustomization.yaml
+
2
−
1
View file @
d855df8b
...
@@ -2,8 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
...
@@ -2,8 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind
:
Kustomization
kind
:
Kustomization
namespace
:
system-upgrade
namespace
:
system-upgrade
resources
:
resources
:
-
fedora.yaml
-
calver-server.yaml
-
calver-server.yaml
-
fedora.yaml
-
kubelet.yaml
-
longhorn-lvm.yaml
-
longhorn-lvm.yaml
-
longhorn-setup.yaml
-
longhorn-setup.yaml
-
fedora-temperature-monitoring.yaml
-
fedora-temperature-monitoring.yaml
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment