Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

refactor: make single seal instance deploy stable #489

Merged
merged 6 commits into from
Apr 24, 2023
Merged

refactor: make single seal instance deploy stable #489

merged 6 commits into from
Apr 24, 2023

Conversation

thxCode
Copy link
Member

@thxCode thxCode commented Apr 24, 2023

#458

this PR introduces the following changes.

  • bump the embedded k3s version to v1.25.5+k3s1.
  • add some stats tools to watch/tunning seal.
  • adjust k3s launching options.
    • reset etcd storage if found at launch.
    • use a more efficient network.
    • disable useless controllers, actually, we can turn off many more abilities that are not needed.
    • replace the script with conditional code, so we don't need always run seal with privileges or do cgroupv2 fixing.
  • merge the consuming data of seal to /var/run/seal, so we can easily launch a single seal container without any data lost by docker run -d --privileged -v <host path>:/var/run/seal -p 80:80 -p 443:443 sealio/seal-server:main. @Finenyaco

@thxCode
Copy link
Member Author

thxCode commented Apr 24, 2023

@thxCode
Copy link
Member Author

thxCode commented Apr 24, 2023

after discussing, keep using etcd as the backend in this PR.

etcd stating can operate as below inside the container.

etcdctl --endpoints=https://localhost:2379 \
          --cert="/var/lib/k3s/server/tls/etcd/server-client.crt" \
          --key="/var/lib/k3s/server/tls/etcd/server-client.key" \
          --cacert="/var/lib/k3s/server/tls/etcd/server-ca.crt" \
          member list

@Finenyaco

Copy link
Contributor

@gitlawr gitlawr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@alexcodelf alexcodelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexcodelf alexcodelf merged commit 03edcd9 into seal-io:main Apr 24, 2023
@thxCode thxCode deleted the fix-458 branch April 24, 2023 09:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants