Skip to content

Instantly share code, notes, and snippets.

View CalvinHartwell's full-sized avatar
💭
Delivering Kubernetes!

Calvin Hartwell CalvinHartwell

💭
Delivering Kubernetes!
View GitHub Profile
calvinh@ubuntu-ws:~/Source/geth/go-ethereum/build/bin$ kubectl exec -it rancher-6d45d9d655-4b9fn /bin/bash
root@rancher-6d45d9d655-4b9fn:/var/lib/rancher#
root@rancher-6d45d9d655-4b9fn:/var/lib/rancher#
root@rancher-6d45d9d655-4b9fn:/var/lib/rancher#
root@rancher-6d45d9d655-4b9fn:/var/lib/rancher# kubectl describe projects --all-namespaces --server=localhost:8081
The connection to the server localhost:8081 was refused - did you specify the right host or port?
root@rancher-6d45d9d655-4b9fn:/var/lib/rancher# kubectl describe projects --all-namespaces
ime="2018-02-23T00:03:57Z" level=info msg="uploading digitaloceanConfig to machine schema"
time="2018-02-23T00:03:57Z" level=info msg="Creating machine driver softlayer"
time="2018-02-23T00:03:57Z" level=info msg="Creating machine driver vmwarevcloudair"
time="2018-02-23T00:03:57Z" level=info msg="Download https://obs.otc.t-systems.com/dockermachinedriver/docker-machine-driver-otc"
time="2018-02-23T00:03:57Z" level=info msg="uploading digitaloceanConfig to machine schema"
time="2018-02-23T00:03:57Z" level=info msg="Creating machine driver vmwarevsphere"
time="2018-02-23T00:03:57Z" level=info msg="uploading azureConfig to machine schema"
time="2018-02-23T00:03:57Z" level=info msg="uploading azureConfig to machine schema"
time="2018-02-23T00:03:57Z" level=info msg="Download https://github.com/packethost/docker-machine-driver-packet/releases/download/v0.1.2/docker-machine-driver-packet_linux-amd64.zip"
time="2018-02-23T00:03:57Z" level=info msg="uploading vmwarevsphereConfig to machine schema"
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/j0VGW+b9D1ZqP/6yLMsKc2GskVGBYlKsLBNZhof6MjQJzhGOagh9nKg31hvJP0M4hWnAo5DEUBzAa8eJO1Agv5idXpqxWTLJv41XLjoYcdTntoXfc6XEMv9Q4PMW6JYr+DhsCuswITH8Y2fhQdO27nsQNiWE9a/HhZfFdOqrOHMiJvszEtQa+H6umqzSah1+Qo4IZBp8bOF9mwT9sSjvbyae9RFhqAGklIxcop15yEVuXnCkebrs5F/jevksNon+tec/h4wBF/MASzPXH4PGptmVqX0JSUblSH7dLtbIryRtEleFTdABjPGPLTsmhINIu6Lyv0u7OSDCrbumOBPZ calvinh@ubuntu-ws
@CalvinHartwell
CalvinHartwell / xmr-miner.sh
Last active March 5, 2018 22:08
xmr-miner-ubuntu
#!/bin/bash
# Ubuntu / Debian
sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev -y
git clone https://github.com/CalvinHartwell/xmr-miner.git
mkdir xmr-miner/build
cd xmr-miner/build
cmake .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF
make install
cd bin
@CalvinHartwell
CalvinHartwell / azure-juju
Last active March 21, 2018 01:49
azure-juju
# configuring juju for azure
We can first check that juju supports azure through the following command:
```
juju show-cloud azure
```
We can also update the list of clouds juju has available using the following command:
@CalvinHartwell
CalvinHartwell / gist:63b652c4286195659749588a12a2f39c
Created March 27, 2018 07:36
ceph-osd mlocate package missing issue
unit-ceph-osd-2: 09:32:16 INFO unit.ceph-osd/2.juju-log Installing apparmor profile for ceph-osd
unit-ceph-osd-2: 09:32:17 INFO unit.ceph-osd/2.juju-log Installing apparmor utils.
unit-kubernetes-worker-0: 09:32:17 DEBUG unit.kubernetes-worker/0.update-status Error from server (NotFound): nodes "FROVHWORKERK8SDEV-N04" not found
unit-kubernetes-worker-0: 09:32:17 INFO unit.kubernetes-worker/0.juju-log Failed to apply label juju-application=kubernetes-worker. Will retry.
unit-kubernetes-worker-0: 09:32:18 DEBUG unit.kubernetes-worker/0.update-status Error from server (NotFound): nodes "FROVHWORKERK8SDEV-N04" not found
unit-ceph-osd-2: 09:32:18 INFO unit.ceph-osd/2.juju-log Setting up the apparmor profile for usr.bin.ceph-osd in disable mode.
unit-kubernetes-worker-0: 09:32:18 INFO unit.kubernetes-worker/0.juju-log Failed to apply label juju-application=kubernetes-worker. Will retry.
unit-ceph-osd-2: 09:32:19 DEBUG unit.ceph-osd/2.config-changed Disabling /etc/apparmor.d/usr.bin.ceph-osd.
unit-ceph-osd-2: 09:32:
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
machines:
0:
1:
2:
3:
4:
5:
6:
root@FROVHJUJUDEV-N01:~/monitoring# juju config prometheus scrape-jobs
|-
- job_name: 'k8s-api-endpoints'
kubernetes_sd_configs:
- api_server: 51.255.79.77
role: endpoints
tls_config:
insecure_skip_verify: true
basic_auth:
username: admin
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
machines:
0:
1:
2:
3:
4:
5:
6:
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
services:
canal:
annotations:
gui-x: '450'
gui-y: '750'
charm: cs:~containers/canal-30
ceph-mon:
annotations: