Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server-nitrogen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
server-nitrogen
Commits
f833e22e
Verified
Commit
f833e22e
authored
2 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
fix: correct issues with k8s install
parent
b61c9baa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/kubernetes.bu
+15
-21
15 additions, 21 deletions
config/kubernetes.bu
config/kubernetes/repo.conf
+2
-2
2 additions, 2 deletions
config/kubernetes/repo.conf
with
17 additions
and
23 deletions
config/kubernetes.bu
+
15
−
21
View file @
f833e22e
...
@@ -33,42 +33,35 @@ storage:
...
@@ -33,42 +33,35 @@ storage:
contents:
contents:
inline: |-
inline: |-
export KUBECONFIG=/etc/kubernetes/admin.conf
export KUBECONFIG=/etc/kubernetes/admin.conf
- path: /usr/local/bin/cilium
mode: 0755
contents:
source: https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
compression: gzip
systemd:
systemd:
units:
units:
- name: kubernetes-install.service
- name: kubernetes-install.service
enabled: true
enabled: true
contents: |
contents: |
[Unit]
[Unit]
Description=Install Overlay Packages
Description=Kubernetes Install
Requires=NetworkManager-wait-online.service
Wants=network-online.target
Requires=zincati.service
After=network-online.target
After=NetworkManager-wait-online.service
# We run before `zincati.service` to avoid conflicting rpm-ostree transactions.
After=zincati.service
Before=zincati.service
Before=multi-user.target
ConditionPathExists=!/var/lib/%N.stamp
[Service]
[Service]
Type=oneshot
Type=oneshot
RemainAfterExit=yes
RemainAfterExit=yes
ExecStart=rpm-ostree install kubelet kubeadm kubectl helm cri-o --idempotent --reboot
ExecStart=/bin/sh -c "curl -L https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz | tar xzf - -C /usr/local/bin/"
ExecStart=/usr/bin/rpm-ostree install --apply-live --allow-inactive kubelet kubeadm kubectl helm cri-o
ExecStart=/bin/touch /var/lib/%N.stamp
[Install]
[Install]
RequiredBy=multi-user.target
WantedBy=multi-user.target
WantedBy=multi-user.target
- name: kubernetes-init.service
- name: kubernetes-init.service
enabled: true
contents: |
contents: |
[Unit]
[Unit]
Description=Initialize Kubernetes Cluster
Description=Initialize Kubernetes Cluster
Require
s=
N
etwork
Manager-wait
-online.
service
Want
s=
n
etwork-online.
target
Require
s=kubernetes-install.
service
Want
s=kubernetes-install.
target
After=
N
etwork
Manager-wait
-online.
service
After=
n
etwork-online.
target
After=kubernetes-install.
service
After=kubernetes-install.
target
Before=multi-user.target
ConditionPathExists=!/var/lib/%N.stamp
[Service]
[Service]
Type=oneshot
Type=oneshot
...
@@ -90,5 +83,6 @@ systemd:
...
@@ -90,5 +83,6 @@ systemd:
--set hubble.relay.enabled=true \
--set hubble.relay.enabled=true \
--set hubble.ui.enabled=true \
--set hubble.ui.enabled=true \
--set kubeProxyReplacement=disabled
--set kubeProxyReplacement=disabled
ExecStartPost=/bin/touch /var/lib/%N.stamp
[Install]
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/kubernetes/repo.conf
+
2
−
2
View file @
f833e22e
...
@@ -3,5 +3,5 @@ name=Kubernetes
...
@@ -3,5 +3,5 @@ name=Kubernetes
baseurl
=
https
://
packages
.
cloud
.
google
.
com
/
yum
/
repos
/
kubernetes
-
el7
-
x86_64
baseurl
=
https
://
packages
.
cloud
.
google
.
com
/
yum
/
repos
/
kubernetes
-
el7
-
x86_64
enabled
=
1
enabled
=
1
gpgcheck
=
1
gpgcheck
=
1
repo_gpgcheck
=
1
gpgkey
=
https
://
packages
.
cloud
.
google
.
com
/
yum
/
doc
/
rpm
-
package
-
key
.
gpg
gpgkey
=
https
://
packages
.
cl
o
ud
.
google
.
com
/
yum
/
doc
/
yum
-
key
.
gpg
https
://
packages
.
cloud
.
google
.
com
/
yum
/
doc
/
rpm
-
package
-
key
.
gpg
#ex
clud
e=kubelet kubeadm kubectl
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