This file contains 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
Usage of ./elasticsearch_exporter: | |
-es.all | |
Export stats for all nodes in the cluster. | |
-es.ca string | |
Path to PEM file that conains trusted CAs for the Elasticsearch connection. | |
-es.client-cert string | |
Path to PEM file that conains the corresponding cert for the private key to connect to Elasticsearch. | |
-es.client-private-key string | |
Path to PEM file that conains the private key for client auth when connecting to Elasticsearch. | |
-es.timeout duration |
This file contains 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
- job_name: 'registry' | |
scrape_interval: 5s | |
bearer_token: secret | |
metrics_path: /extensions/v2/metrics | |
static_configs: | |
- targets: ['172.30.129.186:5000'] |
This file contains 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
{ | |
"apiVersion": "v1", | |
"dockerImageLayers": [ | |
{ | |
"mediaType": "application/vnd.docker.container.image.rootfs.diff+x-gtar", | |
"name": "sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4", | |
"size": 0 | |
}, | |
{ | |
"mediaType": "application/vnd.docker.container.image.rootfs.diff+x-gtar", |
This file contains 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
[pweil@localhost origin]$ cat foo.tar | docker run --userns=host -i -e BUILD_LOGLEVEL=5 --cap-drop KILL --cap-drop MKNOD --cap-drop SETGID --cap-drop SETUID --cap-drop SYS_CHROOT centos/ruby-22-centos7:latest /bin/sh -c "tar -C /tmp -xf - && /usr/libexec/s2i/assemble" | |
---> Installing application source ... | |
---> Building your Ruby application from source ... | |
---> Running 'bundle install --deployment --without development:test' ... | |
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and | |
installing your bundle as root will break this application for all non-root | |
users on this machine. | |
Fetching gem metadata from https://rubygems.org/............... | |
Installing puma 3.4.0 | |
Installing rack 1.6.4 |
This file contains 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
[pweil@localhost origin]$ cat foo.tar | docker run -i -e BUILD_LOGLEVEL=5 --cap-drop KILL --cap-drop MKNOD --cap-drop SETGID --cap-drop SETUID --cap-drop SYS_CHROOT centos/ruby-22-centos7:latest /bin/sh -c "tar -C /tmp -xf - && /usr/libexec/s2i/assemble"---> Installing application source ... | |
---> Building your Ruby application from source ... | |
---> Running 'bundle install --deployment --without development:test' ... | |
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and | |
installing your bundle as root will break this application for all non-root | |
users on this machine. | |
Fetching gem metadata from https://rubygems.org/............... | |
Installing puma 3.4.0 | |
Installing rack 1.6.4 | |
Using bundler 1.7.8 |
This file contains 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
I0403 14:06:35.140540 1 tar.go:200] Adding "/tmp/s2i-build350187676/upload" to tar ... | |
I0403 14:06:35.140673 1 docker.go:874] ------------------------- opts: docker.RunContainerOptions{Image:"centos/ruby-22-centos7:latest", PullImage:false, PullAuth:api.AuthConfig{Username:"", Password:"", Email:"", ServerAddress:""}, ExternalScripts:false, ScriptsURL:"", Destination:"", Env:[]string{"OPENSHIFT_BUILD_NAME=ruby-ex-13", "OPENSHIFT_BUILD_NAMESPACE=testuserns", "OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/ruby-ex.git", "OPENSHIFT_BUILD_COMMIT=855ab2de53ff897a19e1055f7554c64d19e02c50", "BUILD_LOGLEVEL=5"}, Entrypoint:[]string(nil), Stdin:(*io.PipeReader)(0xc420098498), Stdout:(*io.PipeWriter)(0xc420098480), Stderr:(*io.PipeWriter)(0xc420098490), OnStart:(func(string) error)(nil), PostExec:(*sti.STI)(0xc4205a0800), TargetImage:false, NetworkMode:"container:78f6363da792223278433cc9531e4577885ff6771d2dbb3aa396ad67f8250171", UsernsMode:"host", User:"", CGroupLimits:(*api.CGroupLimits)(0xc420911fb0) |
This file contains 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
$ oc logs ruby-ex-3-4zkm7 | |
You might consider adding 'puma' into your Gemfile. | |
ERROR: Rubygem Rack is not installed in the present image. | |
Add rack to your Gemfile in order to start the web server. | |
$ docker run -it 172.30.175.35:5000/testuserns/ruby-ex@sha256:6b2b67c30acd71b59254c5be175c9bd0d59295ab3758c7b24efd6b9bd3a93d88 ls -l /opt/app-root/src | |
total 0 |
This file contains 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
{ | |
"kind": "Pod", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "test-pod", | |
"creationTimestamp": null, | |
"labels": { | |
"openshift.io/build.name": "ruby-ex-4" | |
}, | |
"annotations": { |
This file contains 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
I0322 16:52:19.203294 1 docker.go:928] Paul: config: { | |
"Hostname": "", | |
"Domainname": "", | |
"User": "", | |
"AttachStdin": false, | |
"AttachStdout": true, | |
"AttachStderr": false, | |
"Tty": false, | |
"OpenStdin": true, | |
"StdinOnce": true, |
This file contains 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
[pweil@localhost origin]$ cat openshift.local.config/node-localhost.localdomain/node-config.yaml | |
allowDisabledDocker: false | |
apiVersion: v1 | |
authConfig: | |
authenticationCacheSize: 1000 | |
authenticationCacheTTL: 5m | |
authorizationCacheSize: 1000 | |
authorizationCacheTTL: 5m | |
dnsBindAddress: 192.168.1.104:53 | |
dnsDomain: cluster.local |