- Create namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: gitlab
kubectl create -f ./namespace.yaml
| #cloud-config | |
| rancher: | |
| services: | |
| zerotier: | |
| image: zerotier/zerotier-containerized:1.2.4 | |
| labels: | |
| io.rancher.os.scope: system | |
| volumes: | |
| - /var/lib/zerotier-one:/var/lib/zerotier-one | |
| restart: always |
| #!/bin/bash -e | |
| # Select which Docker version to use on CoreOS with torcx. | |
| # Specify the available Docker version to enable. | |
| version=17.09 | |
| # Create modifiable torcx paths if they don't exist already. | |
| mkdir -p /etc/torcx/profiles /var/lib/torcx/store | |
| # Download the torcx manifest file for the currently running OS version. |
| Sometimes after a hard reboot (power cut), if your synology cannot be logged in with DSM and it shows "System is getting ready. Please log in later" , please do these steps : | |
| #Admin login via ssh | |
| > synobootseq --set-boot-done | |
| > synobootseq --is-ready | |
| #optional | |
| > /usr/syno/etc/rc.d/S97apache-sys.sh start | |
| > /usr/syno/etc/rc.d/S95sshd.sh start |
| apiVersion: rook.io/v1alpha1 | |
| kind: Cluster | |
| metadata: | |
| name: rook | |
| namespace: rook | |
| spec: | |
| versionTag: master | |
| dataDirHostPath: /var/lib/rook-config | |
| # toggle to use hostNetwork | |
| hostNetwork: true |
apiVersion: v1
kind: Namespace
metadata:
name: gitlab
kubectl create -f ./namespace.yamlThis document covers how to setup netboot.xyz, a service that provides iPXE-based installation and live boot of a bunch of operating systems, on a Ubiquiti EdgeRouter.
I've made a few assumptions throughout this document that will probably be different for your setup:
| #version=RHEL7 | |
| # Action | |
| install | |
| cdrom | |
| lang en_US.UTF-8 | |
| keyboard us | |
| text | |
| firewall --service=ssh |
| #cloud-config | |
| hostname: host-0815 | |
| ssh_authorized_keys: | |
| - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA61LSHA7iU+82Z2qypYLx2gB9uHydUOoDON30ceAKl5dSgzShtF5XS5sqABYBMowDcvdkNyUDdt1Druv82iu/scATLFmxTQ8R2XIL33dMO6IpBg0d3WQcU5Xqeor9s5LTpln7F0V+9vaYG/nXqQtnz4PEnZGA+f9ddHuvcDajqKLNTDyriL87E6HAfjNU+1ShI2Qv8Zqhq8rYW0zkn2C+4vVKpgzq8B91R7hSXZwUTU9+bIq3uqTfe/t9/5hFNZEUo/ezV25DFvWDmvKcXt1QRoLxL/NI7h00fEJY7QVh2eevtiA9BdthI2LHx2tm2LoMYHQVZUVljm033xh2UISx | |
| runcmd: | |
| - echo "true" > /home/rancher/provisioned | |
| write_files: | |
| - path: /etc/docker/certs.d/private-registry.internal/ca.crt |
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
| #!/bin/bash | |
| # A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
| # Used to provide DDNS service for my home | |
| # Needs the DNS record pre-creating on Cloudflare | |
| # Proxy - uncomment and provide details if using a proxy | |
| #export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
| # Cloudflare zone is the zone which holds the record |