Skip to content

Instantly share code, notes, and snippets.

View ilackarms's full-sized avatar

Scott W ilackarms

View GitHub Profile
core@core-01 ~ $ journalctl -u etcd
-- Logs begin at Thu 2015-08-20 18:47:42 UTC, end at Thu 2015-08-20 18:51:49 UTC. --
Aug 20 18:47:56 core-01 systemd[1]: Started etcd.
Aug 20 18:47:56 core-01 systemd[1]: Starting etcd...
Aug 20 18:47:56 core-01 etcd[1084]: [etcd] Aug 20 18:47:56.140 INFO | 97c12d68c4fe4c188d26e79b681a7d2a is starting a new cluster
Aug 20 18:47:56 core-01 etcd[1084]: [etcd] Aug 20 18:47:56.142 INFO | etcd server [name 97c12d68c4fe4c188d26e79b681a7d2a, listen on :4001, advertised url http://172.17.8.1
Aug 20 18:47:56 core-01 etcd[1084]: [etcd] Aug 20 18:47:56.142 INFO | peer server [name 97c12d68c4fe4c188d26e79b681a7d2a, listen on :7001, advertised url http://172.17.8.1
Aug 20 18:47:56 core-01 etcd[1084]: [etcd] Aug 20 18:47:56.142 INFO | 97c12d68c4fe4c188d26e79b681a7d2a starting in peer mode
Aug 20 18:47:56 core-01 etcd[1084]: [etcd] Aug 20 18:47:56.142 INFO | 97c12d68c4fe4c188d26e79b681a7d2a: state changed from 'initialized' to 'follower'.
Aug 20 18:47:56 core-01 e
---
name: ecs-service-broker
product_version: "1.5.7.1"
metadata_version: "1.5"
label: 'ECS OSS Service Broker'
description: Service Broker for provisioning S3 storage from a given ECS endpoint
rank: 1
stemcell_criteria:
os: ubuntu-trusty
requires_cpi: false
package com.emc.unik;
import java.net.URL;
import com.sun.javaws.exceptions.InvalidArgumentException;
import com.vmware.vim25.*;
import com.vmware.vim25.mo.*;
public class VmAttachDisk {
public static void main(String[] args) throws Exception {
package main
//authentication service
import (
"net/http"
"fmt"
"time"
"os"
"io/ioutil"
"encoding/json"
W0327 15:47:03.509512 15791 start_master.go:291] Warning: assetConfig.loggingPublicURL: Invalid value: "": required to view aggregated container logs in the console, master start will continue.
W0327 15:47:03.509558 15791 start_master.go:291] Warning: assetConfig.metricsPublicURL: Invalid value: "": required to view cluster metrics in the console, master start will continue.
W0327 15:47:03.509565 15791 start_master.go:291] Warning: auditConfig.auditFilePath: Required value: audit can now be logged to a separate file, master start will continue.
I0327 15:47:03.512833 15791 logs.go:41] warning: ignoring ServerName for user-provided CA for backwards compatibility is deprecated
2017-03-27 15:47:03.513180 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp 192.168.16.70:4001: getsockopt: connection refused"; Reconnecting to {192.168.16.70:4001 <nil>}
I0327 15:47:03.513530 15791 logs.go:41] warning: ignoring ServerName fo
Name: hawkular-cassandra-1-fvtg7
Namespace: openshift-infra
Security Policy: restricted
Node: localhost.localdomain/192.168.16.70
Start Time: Mon, 27 Mar 2017 15:54:36 -0400
Labels: metrics-infra=hawkular-cassandra
name=hawkular-cassandra-1
type=hawkular-cassandra
Status: Pending
IP:
apiVersion: v1
kind: Template
metadata:
name: prometheus
parameters:
- description: The namespace to instantiate prometheus under. Defaults to 'default'.
name: NAMESPACE
value: default
objects:
- apiVersion: v1
@ilackarms
ilackarms / kubeclient_test.rb
Created June 6, 2017 14:31
test script for kubeclient
require 'kubeclient'
kc = Kubeclient::Client.new("http://localhost:8001")
kc.discover
klass = "Kubeclient::Namespace".split('::').inject(Object) {|o,c| o.const_get c}
ns = kc.get_entities("namespaces", klass, "namespaces")
p ns
→ docker login -u foo -p $(oc serviceaccounts get-token builder) http://172.17.0.2:5000
Login Succeeded
→ docker push 172.17.0.2:5000/openshift/busyboxThe push refers to a repository [172.17.0.2:5000/openshift/busybox]
4ac76077f2c7: Preparing
unauthorized: authentication required
apiVersion: v1
kind: Template
metadata:
name: prometheus
annotations:
"openshift.io/display-name": Prometheus
description: |
A monitoring solution for an OpenShift cluster - collect and gather metrics from nodes, services, and the infrastructure.
iconClass: icon-cogs
tags: "monitoring,prometheus,time-series"