Created
November 30, 2021 15:15
-
-
Save pichuang/49eca5098d39d6b8a1c65c41e059273d to your computer and use it in GitHub Desktop.
octant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tee /usr/lib/systemd/system/octant.service <<-'EOF' | |
[Unit] | |
Description=octant | |
[Service] | |
Environment="HOME=/root" | |
Environment="OCTANT_ACCEPTED_HOSTS=10.45.112.173" | |
Environment="KUBECONFIG=/home/livefire/.kube/config" | |
Environment="OCTANT_LISTENER_ADDR=0.0.0.0:8900" | |
Environment="OCTANT_DISABLE_OPEN_BROWSER=true" | |
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" | |
WorkingDirectory=/usr/local/bin/ | |
ExecStart=/usr/local/bin/octant | |
Type=simple | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target | |
EOF | |
chmod 755 -R /usr/lib/systemd/system/octant.service | |
systemctl daemon-reload | |
systemctl enable octant | |
systemctl start octant | |
systemctl status octant |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment