Skip to content

Instantly share code, notes, and snippets.

View displague's full-sized avatar
🐝
Mergin' 🎶 on a Sunday afternoon 🎶

Marques Johansson displague

🐝
Mergin' 🎶 on a Sunday afternoon 🎶
View GitHub Profile
# If you intened to deploy Kubernetes in an air-gapped environment,
# please consult the documentation on how to configure custom RKE images.
nodes:
- address: "45.33.12.249"
port: "22"
internal_address: ""
role:
- controlplane
- worker
- etcd
@displague
displague / compared.md
Created January 2, 2019 13:55
simple vs complex linode terraform

There are two flows for the Linode instance. One where config and disks are used, and another where neither is used.

This is for parity with the Linode API's simple instance creation call, and simplicity for the majority of use cases.

The short answer, is to move the authorized_users, image, root_pass arguments from the linode_instance root into a linode_instance disk {}. Then in that linode_instance also create a config { devices { sda{} } } to refer to the disk label managed by disk {}.

See "Simple Linode Instance" vs "Linode Instance with explicit Configs and Disks":

https://www.terraform.io/docs/providers/linode/r/instance.html#example-usage

kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
kubectl create namespace kubeapps
helm install --name kubeapps --namespace kubeapps bitnami/kubeapps
@displague
displague / README.md
Last active December 4, 2019 09:34
Linode APIv4 ID and Detail for Instance Types, Kernels, Regions, and Images

In response to https://github.com/terraform-providers/terraform-provider-linode/issues/7 , this gist offers a one-time static list of Linode Regions, Types, Images, and Kernels.

This list will go stale. Consider using the means discussed in that issue or use the Linode CLI to generate fresh results.

linode-cli --text regions list  | tr '\t' '|' > regions.md
linode-cli --text images list  | tr '\t' '|' > images.md
linode-cli --text kernels list  | tr '\t' '|' > kernels.md
linode-cli --text linodes types  | tr '\t' '|' > linode-types.md
@displague
displague / README.md
Last active November 5, 2018 14:07 — forked from rdhyee/minecraft_do.yml
Ansible playbook to launch a Linode instance and then configure it to run Minecraft. Note that some things are hardwired: the label of the instance, the version of minecraft

Requires Ansible in this branch ansible/ansible#46151 (until that is merged .. then devel or master)

$ ansible-playbook  /tmp/minecraft_linode.yml  -e linode_token=$LINODE_TOKEN -e ssh_key="$(cat ~/.ssh/id_rsa.pub)" -e type=g6-nanode-1 -e region=us-east -e image=linode/debian9 -e ansible_ssh_private_key_file=~/.ssh/id_rsa --private-key=~/.ssh/id_rsa
 [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source

 [WARNING]: No inventory was parsed, only implicit localhost is available

 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
@displague
displague / rancher_linode.md
Last active January 18, 2019 03:52
Trying Rancher on Linode

In this attempt, we will:

  1. Use Docker-Machine-Driver-Linode to provision a Linode with Docker-CE
  2. Run Rancher 2.x in that Docker-CE
  3. Install the Docker-Machine-Driver-Linode binary in Rancher
  4. Create a Template with the Necessary Settings
  5. Create a Rancher Kubernetes Cluster a. First Try Ubuntu (failure) b. Then Try CoreOS
  6. Next Steps
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/* v----- Do not change anything between here
* (the DRIVERNAME placeholder will be automatically replaced during build) */
define('ui/components/node-driver/driver-linode/component', ['exports', 'ember', 'shared/components/node-driver/driver-linode/component'], function (exports, _ember, _component) {
exports['default'] = _component['default'];
});
define('shared/components/node-driver/driver-linode/component', ['exports', 'ember', 'shared/mixins/node-driver', 'shared/components/node-driver/driver-linode/template', 'ui/utils/constants'], function (exports, _ember, _uiMixinsDriver, _template, _uiUtilsConstants) {
/* ^--- And here */
// You can put embmer object here