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
#!/usr/local/bin/bash | |
#or this !/bin/bash | |
trap 'echo "" ; exit 1' SIGINT | |
shopt -s globstar | |
usage() { | |
echo "Usage: [-i|--include=<.*>] [-d|--dir=<.*>] [-s|--semiauto] REGEXP_FROM STRING_TO" |
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
readonly tempdir="/tmp/templates" | |
mkdir -p "$tempdir" | |
oc project logging | |
readonly dcs=( $(oc get dc | awk 'NR > 1 {print($1)}') ) | |
for dc in ${dcs[@]}; do | |
oc get dc "$dc" -o yaml | | |
sed 's/^apiVersion: v1/apiVersion: extensions\/v1beta1/' | | |
sed 's/DeploymentConfig/Deployment/' | | |
awk '/strategy:/{l=0}/.*/{if(l){print(" "$0)}else{print($0)}} / selector:/{print " matchLabels:";l=1}' | |
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
{ | |
"_index" : ".operations.2017.08.07", | |
"_type" : "com.redhat.viaq.common", | |
"_id" : "AV28LhKeHnu-8fxLW30H", | |
"_score" : 1.0, | |
"_source" : { | |
"docker" : { | |
"container_id" : "020f49711f0d441dbeec0665a8ebd702aa6ec4ffc829aa2bd69f79c6a211b00e" | |
}, | |
"kubernetes" : { |
This file has been truncated, but you can view the full file.
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
I, [2017-08-16T12:36:23.310529 #33] INFO -- : ^===================================== | |
I, [2017-08-16T12:36:23.310632 #33] INFO -- : --tag kubernetes.var.log.containers.logging-kibana-1-zkx18_logging_kibana-proxy-c84ae26288090339b887b3e94cb240607fa87c022c80e325185c0c28618f8e45.log | |
I, [2017-08-16T12:36:23.310660 #33] INFO -- : --time 1502879751 | |
I, [2017-08-16T12:36:23.310815 #33] INFO -- : $===================================== | |
I, [2017-08-16T12:36:23.310832 #33] INFO -- : ^===================================== | |
I, [2017-08-16T12:36:23.310846 #33] INFO -- : --tag kubernetes.var.log.containers.logging-kibana-1-zkx18_logging_kibana-proxy-c84ae26288090339b887b3e94cb240607fa87c022c80e325185c0c28618f8e45.log | |
I, [2017-08-16T12:36:23.310866 #33] INFO -- : --time 1502879751 | |
I, [2017-08-16T12:36:23.311003 #33] INFO -- : $===================================== | |
I, [2017-08-16T12:36:23.311021 #33] INFO -- : ^===================================== | |
I, [2017-08-16T12:36:23.311034 #33] INFO -- : --tag kubernetes.var.l |
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
@diff = 0.0 | |
def test() | |
@control_var = true | |
Thread.new { | |
start = Time.now | |
while @control_var | |
end | |
finish = Time.now | |
diff = (finish - start) * 1000 - 1000 |
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
FROM centos:centos7 | |
MAINTAINER OpenShift Development <dev@lists.openshift.redhat.com> | |
ADD openshift-eventrouter-0.1-1.git5bd9251.fc25.x86_64.rpm /tmp/ | |
RUN rpm -ihv /tmp/openshift-eventrouter-0.1-1.git5bd9251.fc25.x86_64.rpm | |
USER 0 | |
CMD ["/bin/sh", "-c", "/usr/bin/eventrouter -v 3 -logtostderr"] |
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
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/resource_management_guide/sec-cpu | |
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | |
spec.containers[].resources.requests.cpu | |
- affects cgroup cpu.shares (relative share of CPU) | |
- if node is too busy, low requests means container could get starved | |
spec.containers[].resources.limits.cpu | |
- affects cgroup cpu.cfs_quota_us (microseconds available per period) | |
- works as ceilling, container will not receive more even if available for its cgroup |
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
# docker version | |
Client: | |
Version: 1.12.6 | |
API version: 1.24 | |
Package version: docker-1.12.6-48.git0fdc778.el7.centos.x86_64 | |
Go version: go1.8.3 | |
Git commit: 0fdc778/1.12.6 | |
Built: Thu Sep 7 18:00:07 2017 | |
OS/Arch: linux/amd64 |
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
[OSEv3:children] | |
masters | |
nodes | |
etcd | |
[OSEv3:vars] | |
ansible_ssh_user=root | |
deployment_type=origin | |
openshift_deployment_type=origin | |
openshift_disable_check=docker_storage,memory_availability,disk_availability |
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
FROM centos:centos7 | |
ENV testvar=dockerfile | |
CMD echo [$testvar] ; sleep infinity |
OlderNewer