Skip to content

Instantly share code, notes, and snippets.

View vnugent's full-sized avatar

Viet Nguyen vnugent

View GitHub Profile
Number of pods: 10
{
"promgen/example-5-2r548": {
"metrics": [
{
"type": "gauge",
"id": "e1bda985-0a0f-11e7-972b-fa163e4fa2fc_custom_gaugeA",
"data_count": 60
},
{
@vnugent
vnugent / hosa-test1.md
Last active March 22, 2017 14:44
HOSA test 1

Environment:

  • 1 VM 8GB RAM, 1 master, 1 node on the same VM. Installed from released binary
  • RH Public OS1
  • Origin version: 1.4.1
  • HOSA version: Unknown

Master: http://master.cloud1.hawkular.org

Test tools:

As of March 2017 there is no command for deleting registry. You may encounter registry deployment and wish to redploy. Run the following commands to delete all registry-related objects:
oc delete clusterrolebinding registry-registry-role
oc delete dc/docker-registry
oc delete svc/docker-registry
oc delete sa/registry
for i in $(oc get secrets | grep registry | awk '{print $1}'); do oc delete secret/$i; done # didn't do this the first few times.
# systemctl restart origin-master
@vnugent
vnugent / origin-metrics-install-notes.md
Last active March 6, 2017 20:46
origin-install-notes

Requirement checklist:

  1. Is Docker installed and working?
  2. Is OpenShift origin installed and working?
  3. Does DNS work inside pod's container?

Smoke Tests

  1. Docker
apiVersion: v1
kind: Template
labels:
template: manageiq
metadata:
annotations:
description: A template for creating ManageIQ appliance
iconClass: icon-app-code
tags: instant-app,quickstart,manageiq,miq
name: manageiq
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [125.6, 10.1]
},
"properties": {
"name": "Dinagat Islands"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[OSEv3:children]
masters
nodes
[OSEv3:vars]
# Enable cluster metrics
use_cluster_metrics=true
# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/htpasswd'}]

# oc project openshift-infra
# git clone https://github.com/openshift/origin-metrics
# cd origin-metrics
# oc process -f metrics.yaml -v \
  HAWKULAR_METRICS_HOSTNAME=hawkular-metrics-openshift-infra.cloud2.jonqe.lab.eng.bos.redhat.com,\
  IMAGE_PREFIX=rcm-img-docker01.build.eng.bos.redhat.com:5001/openshift3/,\
  IMAGE_VERSION=3.1.0,USE_PERSISTENT_STORAGE=false,\
 MASTER_URL=https://ose-master1.bc.jonqe.lab.eng.bos.redhat.com:8443,REDEPLOY=true\