Skip to content
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

Fix egress-interfaces MachineConfig #77

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 27 additions & 22 deletions component/egress-interfaces.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,40 @@ local configs = [
},
spec+: {
config: {
ignition: {
version: '3.4.0',
},
storage: {
files: [
{
path: '/usr/local/bin/appuio-create-egress-interfaces.sh',
mode: std.parseOctal('0755'),
contents:
'data:text/plain;charset=utf-8;base64,%s' %
std.base64(script),
contents: {
source:
'data:text/plain;charset=utf-8;base64,%s' %
std.base64(script),
},
},
],
},
systemd: {
units: [
{
name: 'appuio-create-egress-interfaces.service',
enabled: true,
contents: |||
[Unit]
Description=Assign egress IPs to node interface
After=NetworkManager-wait-online.service
Before=kubelet-dependencies.target
[Service]
ExecStart=/usr/local/bin/appuio-create-egress-interfaces.sh
Type=oneshot
[Install]
WantedBy=kubelet-dependencies.target
|||,
},
],
systemd: {
units: [
{
name: 'appuio-create-egress-interfaces.service',
enabled: true,
contents: |||
[Unit]
Description=Assign egress IPs to node interface
After=NetworkManager-wait-online.service
Before=kubelet-dependencies.target
[Service]
ExecStart=/usr/local/bin/appuio-create-egress-interfaces.sh
Type=oneshot
[Install]
WantedBy=kubelet-dependencies.target
|||,
},
],
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,25 @@ metadata:
name: 99x-infra-egress-interfaces
spec:
config:
ignition:
version: 3.4.0
storage:
files:
- contents: data:text/plain;charset=utf-8;base64,IyEvYmluL2Jhc2gKCnNldCAtZW8gcGlwZWZhaWwKCmV4cG9ydCBLVU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1YmVjb25maWciCgpyZWFkb25seSBzaGFkb3dfZGF0YT0kKGt1YmVjdGwgLW4gImNpbGl1bSIgZ2V0IGNvbmZpZ21hcCAiZWlwLXNoYWRvdy1yYW5nZXMiIC1vanNvbnBhdGg9InsuZGF0YS4ke0hPU1ROQU1FfX0iKQoKZm9yIHByZWZpeCBpbiAkKGVjaG8gIiRzaGFkb3dfZGF0YSIgfCBqcSAtciAnLnxrZXlzW10nKTsgZG8KICBiYXNlPSQoZWNobyAiJHNoYWRvd19kYXRhIiB8IGpxIC1yICIuJHtwcmVmaXh9LmJhc2UiKQogIGZyb209JChlY2hvICIkc2hhZG93X2RhdGEiIHwganEgLXIgIi4ke3ByZWZpeH0uZnJvbSIpCiAgdG89JChlY2hvICIkc2hhZG93X2RhdGEiIHwganEgLXIgIi4ke3ByZWZpeH0udG8iKQogIGVjaG8gIkNvbmZpZ3VyaW5nIGR1bW15IGludGVyZmFjZXMgZm9yIGVncmVzcyByYW5nZSAke3ByZWZpeH06IGJhc2U9JHtiYXNlfSwgZnJvbT0ke2Zyb219LCB0bz0ke3RvfSIKICBmb3Igc3VmZml4IGluICQoc2VxICIkZnJvbSIgIiR0byIpOyBkbwogICAgaWR4PSQoKCIkc3VmZml4IiAtICIkZnJvbSIpKQogICAgaWZhY2U9IiR7cHJlZml4fV8ke2lkeH0iCiAgICBpcCBsIGRlbCAiJGlmYWNlIiAyPi9kZXYvbnVsbCB8fCB0cnVlCiAgICBpcCBsIGFkZCAiJGlmYWNlIiB0eXBlIGR1bW15CiAgICBpcCBhIGFkZCAiJHtiYXNlfS4ke3N1ZmZpeH0iIGRldiAiJGlmYWNlIgogIGRvbmUKZG9uZQoKZXhpdCAwCg==
mode: 493
path: /usr/local/bin/appuio-create-egress-interfaces.sh
systemd:
units:
- contents: |
[Unit]
Description=Assign egress IPs to node interface
After=NetworkManager-wait-online.service
Before=kubelet-dependencies.target
[Service]
ExecStart=/usr/local/bin/appuio-create-egress-interfaces.sh
Type=oneshot
[Install]
WantedBy=kubelet-dependencies.target
enabled: true
name: appuio-create-egress-interfaces.service
systemd:
units:
- contents: |
[Unit]
Description=Assign egress IPs to node interface
After=NetworkManager-wait-online.service
Before=kubelet-dependencies.target
[Service]
ExecStart=/usr/local/bin/appuio-create-egress-interfaces.sh
Type=oneshot
[Install]
WantedBy=kubelet-dependencies.target
enabled: true
name: appuio-create-egress-interfaces.service
Loading