Skip to content

Instantly share code, notes, and snippets.

View jstrachan's full-sized avatar

James Strachan jstrachan

View GitHub Profile
filepath: ""
environments:
default:
values:
- jx-values.yaml
- src/fake-secrets.yaml.gotmpl
repositories:
- name: jenkins-x
url: https://storage.googleapis.com/chartmuseum.jenkins-x.io
- name: external-secrets
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"elasticloadbalancing:*",
"ec2:CreateSecurityGroup",
"ec2:Describe*"
],
"Resource": "*"
$ kubectl get release -n jx-staging -oyaml spring-boot-web-gradle-0.0.3
apiVersion: jenkins.io/v1
kind: Release
metadata:
clusterName: ""
creationTimestamp: 2018-03-21T16:31:40Z
deletionGracePeriodSeconds: null
deletionTimestamp: null
initializers: null
name: spring-boot-web-gradle-0.0.3

The status of a pod depends on a few things

Phase

A pod has a phase...

Pending

Pending means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent

apiVersion: v1
kind: BuildConfig
metadata:
name: e2e-test
labels:
space: system
spec:
runPolicy: Serial
source:
git:
apiVersion: v1
kind: BuildConfig
metadata:
name: pv-checker
spec:
runPolicy: Serial
source:
git:
ref: master
uri: https://github.com/rawlingsj/pv-checker.git
#!/bin/sh
CONTEXT=`kubectl config current-context`
echo "Changing namespace to $1 on context $CONTEXT"
kubectl config set-context $CONTEXT --namespace=$1
#!/bin/sh
CONTEXT=`kubectl config current-context`
echo "Changing namespace to $1 on context $CONTEXT"
kubectl config set-context $CONTEXT --namespace=$1
---
apiVersion: "v1"
kind: "List"
items:
- apiVersion: "v1"
kind: "ConfigMap"
metadata:
annotations:
fabric8.io/git-commit: "730391dca36b97aa0377bac5959b58f30c38a779"
fabric8.io/build-id: "4"
$ oc export rc cool-microservice
apiVersion: v1
kind: ReplicationController
metadata:
annotations:
fabric8.io/build-url: http://172.30.64.127:80/job/cool-microservice
fabric8.io/git-branch: cool-microservice-1.0.1
fabric8.io/git-commit: b16f6f195554ce55380738ab62a84d2d51bbd2a1
creationTimestamp: null
generation: 1