Skip to content

Instantly share code, notes, and snippets.

View wabouhamad's full-sized avatar

Walid Abouhamad wabouhamad

View GitHub Profile
This is on OCP 4.2 build: 4.2.0-0.nightly-2019-10-03-224032
Deploy NFD:
cd $GOPATH/src/github.com/openshift
git clone https://github.com/openshift/cluster-nfd-operator.git
cd cluster-nfd-operator
git checkout release-4.2
make deploy
{
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "hello-openshift",
"creationTimestamp": null,
"labels": {
"name": "hello-openshift"
}
},
projects:
- num: 1
basename: clusterproject
ifexists: reuse
tuning: default
quota: default
pods:
- total: 1000
- num: 100
image: openshift/hello-openshift:v1.0.6
@wabouhamad
wabouhamad / logging-es-dc.yaml
Created September 13, 2017 17:03
OCP 3.6 logging-elasticsearch DeploymentConfig
apiVersion: v1
kind: DeploymentConfig
metadata:
creationTimestamp: 2017-09-13T13:31:37Z
generation: 7
labels:
component: es
deployment: logging-es-data-master-jt9u3xu6
logging-infra: elasticsearch
provider: openshift
@wabouhamad
wabouhamad / logging-fluentd-ds.yaml
Last active September 13, 2017 17:01
OCP 3.6 Fluent daemonset config with json-file as log-driver
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
creationTimestamp: 2017-09-13T13:32:15Z
generation: 2
labels:
component: fluentd
logging-infra: fluentd
provider: openshift
name: logging-fluentd
@wabouhamad
wabouhamad / logging.yaml
Last active September 13, 2017 17:01
OCP 3.6 Logging inventory with json-file as log driver
[oo_first_master]
<master_private_ip_addr>
[oo_first_master:vars]
openshift_deployment_type=openshift-enterprise
openshift_release=v3.6.0
openshift_logging_install_logging=true
openshift_logging_master_url=https://<master_public_DNS_name>:8443
openshift_logging_master_public_url=https://<master_public_DNS_name>:8443
@wabouhamad
wabouhamad / gist:bb64bec3b752e791617ec59822b8ab51
Created September 8, 2017 19:33
Sample cluster-loader.py config yaml file for log-test at 400 messages per second
projects:
- num: 1
basename: lograte-400mpsec-
ifexists: delete
tuning: default
templates:
- num: 1
file: ./content/logtest/logtest-rc.json
parameters:
- REPLICAS: "1"
@wabouhamad
wabouhamad / gist:e0c2cb8937ecbf15870b34f3d669a8f3
Created September 8, 2017 15:33
OCP 3.6 Ansible playbook to tune journald
name: journald optimizations to allow for increased logging rates
hosts: all
gather_facts: False
tasks:
- name: Stop and disable rsyslog
systemd:
name: "{{ item }}"
state: stopped
enabled: no
with_items:
@wabouhamad
wabouhamad / logging-fluentd-ds.yaml
Last active September 13, 2017 17:00
OCP 3.6 logging-fluentd DaemonSet configuration
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
creationTimestamp: 2017-09-05T16:46:11Z
generation: 2
labels:
component: fluentd
logging-infra: fluentd
provider: openshift
name: logging-fluentd
@wabouhamad
wabouhamad / logging-es-dc.yaml
Created September 8, 2017 15:24
OCP 3.6 logging-es DeploymentConfig
apiVersion: v1
kind: DeploymentConfig
metadata:
creationTimestamp: 2017-09-05T16:45:28Z
generation: 4
labels:
component: es
deployment: logging-es-data-master-prga0kc4
logging-infra: elasticsearch
provider: openshift