This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_devices(device_dir, logger): | |
| devices = [] | |
| for line in open('/proc/mounts').readlines(): | |
| data = line.strip().split() | |
| block_device = data[0] | |
| mount_point = data[1] | |
| if mount_point.startswith(device_dir): | |
| device = {} | |
| device['mount_point'] = mount_point | |
| device['block_device'] = block_device |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [vagrant@kubernetes-master ~]$ kubectl cluster-info | |
| error: couldn't read version from server: Get http://localhost:8080/api: dial tcp 127.0.0.1:8080: connection refused | |
| [root@kubernetes-master vagrant]# systemctl status kubelet | |
| ● kubelet.service - Kubernetes Kubelet Server | |
| Loaded: loaded (/usr/lib/systemd/system/kubelet.service; disabled) | |
| Active: inactive (dead) | |
| Docs: https://github.com/GoogleCloudPlatform/kubernetes | |
| Can start the kubelet service - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| KEHP-M-X03J:kubernetes-vagrant-coreos-cluster keshava$ vagrant up | |
| Bringing machine 'master' up with 'virtualbox' provider... | |
| Bringing machine 'node-01' up with 'virtualbox' provider... | |
| Bringing machine 'node-02' up with 'virtualbox' provider... | |
| ==> master: Running triggers before up... | |
| ==> master: Setting Kubernetes version 0.21.0 | |
| ==> master: Configuring Kubernetes cluster DNS... | |
| ==> master: Box 'coreos-alpha' could not be found. Attempting to find and install... | |
| master: Box Provider: virtualbox | |
| master: Box Version: >= 738.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Wrote config for vagrant to /Users/keshava/.kube/config | |
| Each machine instance has been created/updated. | |
| Now waiting for the Salt provisioning process to complete on each machine. | |
| This can take some time based on your network, disk, and cpu speed. | |
| It is possible for an error to occur during Salt provision of cluster and this could loop forever. | |
| Validating master | |
| Validating minion-1 | |
| ............. | |
| Waiting for each minion to be registered with cloud provider | |
| error: couldn't read version from server: Get https://10.245.1.2/api: dial tcp 10.245.1.2:443: connection refused |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| make | |
| hack/build-go.sh | |
| +++ [0804 10:48:32] Building go targets for linux/amd64: | |
| cmd/kube-proxy | |
| cmd/kube-apiserver | |
| cmd/kube-controller-manager | |
| cmd/kubelet | |
| cmd/hyperkube | |
| cmd/kubernetes | |
| cmd/linkcheck |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| to be able to include a role and be able to pass the tagged tasks to run or to skip. For example: | |
| roles: | |
| - { role: myrole, run_tags: service_restart skip_tags: datastore } | |
| - { role: anotherrole, run_tags: install_configs,service_restart } | |
| - { role: finalrole, skip_tags: service_restart } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="author" content="{{ with .Site.Params.name }}{{ . }}{{ end }}"> | |
| <meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}"> | |
| {{ .Hugo.Generator }} | |
| <title>{{ .Title }} · {{ .Site.Title }}</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| box: debian | |
| build: | |
| steps: | |
| - script: | |
| name: install git | |
| code: | | |
| apt-get update | |
| apt-get install git -y | |
| - script: | |
| name: fetch theme sub module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func printMessage(message string) { | |
| fmt.Println(message) | |
| } | |
| func getPrintMessage() func(string) { | |
| // returns an anonymous function |