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
| #!/bin/bash | |
| METRICS=`curl localhost:10248/metrics 2> /dev/null` | |
| echo "$METRICS" | grep docker_error | |
| echo "$METRICS" | grep sync_pods | |
| echo "$METRICS" | grep sync_pod |
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
| vmarmol@kubernetes-master:~$ sudo ls -R /var/etcd | |
| /var/etcd: | |
| data | |
| /var/etcd/data: | |
| snap wal | |
| /var/etcd/data/snap: | |
| 0000000000000516-0000000000222ee0.snap 0000000000000516-000000000022a413.snap | |
| 0000000000000516-00000000002255f1.snap 0000000000000516-000000000022cb24.snap |
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
| type Config struct { | |
| // Hostname optionally sets the container's | |
| // hostname if provided | |
| Hostname string | |
| // Networks specifies the container's network | |
| // setup to be created | |
| Networks []*Network | |
| // Routes can be specified to create entries |
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
| FROM ubuntu | |
| ADD secure /secure | |
| ENTRYPOINT ["/secure"] |
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 ( | |
| "encoding/json" | |
| "flag" | |
| "io" | |
| "net/http" | |
| "github.com/golang/glog" | |
| "golang.org/x/net/websocket" |
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 ( | |
| "libcontainer" | |
| "os" | |
| ) | |
| func startContainer() error { | |
| config, err := loadConfigFromSomewhere() | |
| if err != nil { |
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 ( | |
| "libcontainer" | |
| "os" | |
| ) | |
| func startContainer() error { | |
| config, err := loadConfigFromSomewhere() | |
| if err != nil { |
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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <sched.h> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> | |
| int main() { | |
| // NOTE: replace <pid> with PID of init, or take as an arg. This was shorter :) |
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 ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| ) | |
| var argPort = flag.Int("port", 8080, "port to listen") |
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 ( | |
| "./capability" | |
| "fmt" | |
| "os" | |
| ) | |
| // NOTE: Run as root. | |
| func main() { |
NewerOlder