Skip to content

Instantly share code, notes, and snippets.

@pichuang
Created November 30, 2021 15:15
Show Gist options
  • Save pichuang/49eca5098d39d6b8a1c65c41e059273d to your computer and use it in GitHub Desktop.
Save pichuang/49eca5098d39d6b8a1c65c41e059273d to your computer and use it in GitHub Desktop.
octant
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