export OPENSHIFT_MEMORY=4192
vagrant up
vagrant ssh
| this.get_entities_exists = function get_entities_exists(lname) { | |
| var gservices = $.grep(self.services, function(element) { | |
| if (element) { //skip kubernetes services | |
| if (element.spec.selector) { | |
| if (element.spec.selector.hasOwnProperty(lname)) { | |
| return true; | |
| } | |
| } | |
| } | |
| }); |
| package main | |
| import ( | |
| "bufio" | |
| "encoding/hex" | |
| "fmt" | |
| "io" | |
| "net" | |
| "os" | |
| "strings" |
| /usr/bin/kubelet --logtostderr=true --v=0 --api_servers=http://127.0.0.1:8080 --address=0.0.0.0 --port=10250 --hostname_override=127.0.0.1 --allow_privileged=false | |
| W0514 00:56:33.240057 5798 server.go:347] Could not load kubernetes auth path: stat /var/lib/kubelet/kubernetes_auth: no such file or directory. Continuing with defaults. | |
| I0514 00:56:33.240174 5798 server.go:237] Using root directory: /var/lib/kubelet | |
| I0514 00:56:33.240255 5798 manager.go:113] cAdvisor running in container: "/" | |
| I0514 00:56:33.241045 5798 fs.go:87] Filesystem partitions: map[/dev/sda2:{mountpoint:/boot major:8 minor:2} /dev/mapper/fedora-home:{mountpoint:/home major:253 minor:2} /dev/mapper/fedora-root:{mountpoint:/ major:253 minor:1}] | |
| I0514 00:56:33.247170 5798 manager.go:134] Machine: {NumCores:4 CpuFrequency:3600000 MemoryCapacity:16513347584 MachineID:f744655cf6e84a33bf18c2c2ba4a6659 SystemUUID:819C17B8-4452-CB11-8B93-CBEC07CDEC42 BootID:1d355f51-89b3-45f6-8913-d4f8256e9d30 Filesystems:[{Device:/dev/mapper/fedora- |
| laptop>export OPENSHIFT_MEMORY=4192 | |
| laptop>vagrant up | |
| laptop>vagrant ssh | |
| vm>cd /data/src/github.com/openshift/origin | |
| vm>git fetch; git pull --rebase | |
| vM>make clean build | |
| vm>export PATH=/data/src/github.com/openshift/origin/_output/local/bin/linux/amd64:$PATH | |
| vm>mkdir -p /root/o3/ |
| kind: Template | |
| apiVersion: v1 | |
| template: oshinko | |
| metadata: | |
| name: oshinko | |
| objects: | |
| - kind: Service | |
| apiVersion: v1 | |
| metadata: |
| { | |
| "apiVersion": "v1", | |
| "kind": "Template", | |
| "template": "oshinko-webui-old", | |
| "metadata": { | |
| "name": "oshinko-webui-old", | |
| "annotations": { | |
| "openshift.io/display-name": "Oshinko-Webui", | |
| "description": "", | |
| "template.openshift.io/long-description": "", |
| #!/bin/bash | |
| # Check whether there is a passwd entry for the container UID | |
| myuid=$(id -u) | |
| mygid=$(id -g) | |
| uidentry=$(getent passwd $myuid) | |
| # If there is no passwd entry for the container UID, attempt to create one | |
| if [ -z "$uidentry" ] ; then | |
| if [ -w /etc/passwd ] ; then |
| { | |
| "apiVersion":"v1", | |
| "kind":"Template", | |
| "template":"oshinko-webui", | |
| "labels": { | |
| "template": "oshinko-webui-template" | |
| }, | |
| "message": "A Oshinko Webui service has been created in your project.", | |
| "metadata":{ | |
| "name":"oshinko-webui", |
| { | |
| "apiVersion": "v1", | |
| "kind": "Template", | |
| "labels": { | |
| "application": "oshinko-pyspark", | |
| "createdBy": "template-oshinko-pyspark-build-dc" | |
| }, | |
| "metadata": { | |
| "annotations": { | |
| "openshift.io/display-name": "PySpark", |