Skip to content

Instantly share code, notes, and snippets.

View rawlingsj's full-sized avatar

James Rawlings rawlingsj

View GitHub Profile
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
fabric8.io/git-commit: c7bc79ad4461aff24a60508f2c32ec8a4358dfa4
fabric8.io/scm-con-url: scm:git:[email protected]:fabric8io/fabric8-devops.git/keycloak
---
apiVersion: v1
kind: Template
metadata:
labels:
provider: fabric8
project: fabric8-online-jenkins
version: 1.0-SNAPSHOT
group: io.fabric8.online.packages
name: fabric8-online-jenkins
apiVersion: "v1"
kind: "Pod"
metadata:
name: "jr-test"
spec:
containers:
- command:
- "sleep"
- "3600"
image: "busybox"
apiVersion: v1
kind: ResourceQuota
metadata:
name: compute-resources
spec:
hard:
limits.cpu: "4"
limits.memory: 2Gi
scopes:
- NotTerminating
apiVersion: v1
kind: ResourceQuota
metadata:
name: compute-resources-timebound
spec:
hard:
limits.cpu: "2"
limits.memory: 1Gi
scopes:
- Terminating
cat <<EOF | kubectl create -f -
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: standard
provisioner: kubernetes.io/azure-disk
parameters:
skuName: Standard_LRS
location: eastus
storageAccount: azure_storage_account_name
apiVersion: v1
kind: BuildConfig
metadata:
name: spring-boot-webmvc-jr
spec:
runPolicy: Serial
source:
git:
ref: master
uri: https://github.com/rawlingsj/spring-boot-webmvc.git
oc get pods
unexpected fault address 0x12a1cb67e5ec
fatal error: fault
[signal 0xb code=0x1 addr=0x12a1cb67e5ec pc=0x12a1cb67e5ec]
goroutine 15 [running]:
runtime.throw(0x239e418, 0x5)
/usr/local/go/src/runtime/panic.go:547 +0x90 fp=0xc82066c880 sp=0xc82066c868
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:27 +0x2ba fp=0xc82066c8d0 sp=0xc82066c880
oc edit dc nexus
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x1379f480e4ba pc=0xf59b]
runtime stack:
runtime.throw(0x276dee0, 0x2a)
/usr/local/go/src/runtime/panic.go:547 +0x90
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.unlock(0x384a160)
#!/bin/bash
MINIKUBE_VERSION=0.8.0
KUBECTL_VERSION=1.3.4
GOFABRIC8_VERSION=0.4.45
MAVEN_VERTSION=3.3.9
QUICKSTART_VERSION=2.2.164
function getMinikube {
if [[ "$OSTYPE" == "linux-gnu" ]]; then
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v$MINIKUBE_VERSION/minikube-linux-amd64