Skip to content

Instantly share code, notes, and snippets.

@hgye
hgye / md
Created August 17, 2021 14:32
nextcloud on Raspberry Pi
nextcloud on Raspberry Pi
===
### ubuntu core
- nextcloudPi [image](https://ubuntu.com/appliance/nextcloud/raspberry-pi)
- snapcraft, specilly for IoT
- similar with CoreOS(FCOS), which is using ```rpm-tree```, instead ubuntu core using snap
- snap [set proxy](https://askubuntu.com/questions/764610/how-to-install-snap-packages-behind-web-proxy-on-ubuntu-16-04)
```
$ sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>"
$ sudo snap set system proxy.https="http://<proxy_addr>:<proxy_port>"
@hgye
hgye / Making routr working on k8s and remote cli managment
Created March 31, 2021 06:23
Making routr working on k8s and remote cli managment.md
Making routr working on k8s and remote cli managment
===
### Prepare
- Pls make sure you have traefik in your k8s, if you don't, please [install it](https://github.com/traefik/traefik-helm-chart)
- [Install routr using helm](https://artifacthub.io/packages/helm/routr/routr)
- [install rctl](https://routr.io/docs/administration/cli/installation/) in you pc, or management laptop, etc.
### Create ingressroute for routr
- update you traefik, create two entrypoints for tcp/udp
```yaml=
@ traefik/values.yaml:206 @ ports:
@hgye
hgye / gist:3831c78add843dc048359b286d53e01c
Created July 15, 2020 13:20
ansible playbook output
PLAY [localhost] *****************************************************************************************************************************************************************************************************************************
Wednesday 15 July 2020 19:28:15 +0800 (0:00:00.192) 0:00:00.192 ********
TASK [Check ansible version >=2.8.0] *********************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
fcos-slave1-dev | SUCCESS => {
"hostvars[inventory_hostname]": {
"ansible_all_ipv4_addresses": [
"169.254.25.10",
"192.168.30.239",
"172.17.0.1",
"10.233.79.0",
"10.233.18.165",
"10.233.49.42",
"10.233.0.1",