Skip to content

Instantly share code, notes, and snippets.

ref to kops builds
@wozniakjan
wozniakjan / keybase.md
Created August 9, 2018 14:09
keybase.md

Keybase proof

I hereby claim:

  • I am wozniakjan on github.
  • I am jawoznia (https://keybase.io/jawoznia) on keybase.
  • I have a public key ASAhah6wV2zjAR12I-SunEr7cBdrv7f1RYZf6MW_I9G_dgo

To claim this, I am signing this object:

@wozniakjan
wozniakjan / PR
Last active May 25, 2018 09:38
CEE git
# PR: https://github.com/openshift/openshift-docs/pull/9201
# simple fix that should have merged into master, enterprise-3.7/9/10
# working branch was called fix_01
git clone https://github.com/openshift/openshift-docs/
git checkout enterprise-3.10
git branch
# https://github.com/openshift/openshift-docs/pull/9201/commits
git log 2a15fe7 -1
@wozniakjan
wozniakjan / Dockerfile.has
Last active January 29, 2018 15:49
cri-o env variable test
FROM centos:centos7
ENV testvar=dockerfile
CMD echo [$testvar] ; sleep infinity
@wozniakjan
wozniakjan / inventory.yml
Created January 8, 2018 14:48
3.6 deploy issue
[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
@wozniakjan
wozniakjan / docker version
Last active November 15, 2017 16:22
debugging
# 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
@wozniakjan
wozniakjan / conclusion
Last active December 18, 2017 16:40
logging cgroup info
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
@wozniakjan
wozniakjan / Dockerfile.centos7
Last active September 14, 2017 07:40
eventrouter specfile
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"]
@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 has been truncated, but you can view the full file.
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