Skip to content

Instantly share code, notes, and snippets.

View goern's full-sized avatar
🥥
working on getting Data Science done...

Christoph Görn goern

🥥
working on getting Data Science done...
View GitHub Profile
@goern
goern / atomicapp-provider-openshift-storage
Last active August 29, 2015 14:18
How to claim/request (have a requiremet for) storage on OSE3?
kind: PersistentVolumeClaim
apiVersion: v1beta3
metadata:
name: myvol1-claim-1
spec:
accessModes:
- ReadWriteOnce
resources:
size: 3
{
"apiVersion": "v1beta1",
"items": [
{
"apiVersion": "v1beta1",
"containerPort": 8080,
"id": "frontend",
"kind": "Service",
"port": 5432,
"selector": {
{
"kind":"Template",
"metadata": {
"name": "docker-registry-template",
"annotations": {
"description": "Template for launching a docker-registry pod"
}
},
"parameters": [
{

Nulecule Lifecycle Definition

install - will install all required artifacts into a working changes. it will not alter the configuration [of OpenShift or Kubernetes] via a provider. a deployment guy will be able to configure the deployment process, which will be started by run.

run - will deploy artifacts and their configuration via the provider onto the platform. configuration will become effectice and the application will be available to users.

1. We dont patch upstream to integrate with Atomic App.
2. We need to provide an integrated user experience.
3. Lets have a common understanding of what states an Atomic App has.
4. Figure out how we map the states and their transitions to user actions.
5. Figure out what user actions/verbs we want to expose to the user/deployer.

Keybase proof

I hereby claim:

  • I am goern on github.
  • I am goern (https://keybase.io/goern) on keybase.
  • I have a public key whose fingerprint is DB72 94CF 7E25 952C C66B C213 01D1 FE85 664C D4D2

To claim this, I am signing this object:

package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"github.com/fsouza/go-dockerclient"
)
# This reused parts of https://access.redhat.com/solutions/2147871
sudo yum install -y atomic docker etcd kubernetes nfs-utils sos cockpit-sos cockpit-kubernetes cockpit
sudo systemctl start cockpit && sudo systemctl enable cockpit.socket
sudo systemctl enable docker && sudo systemctl start docker
sudo docker pull centos
sudo systemctl enable etcd && sudo systemctl start etcd
docker pull openshift/origin-pod
docker pull openshift/origin-sti-builder
docker pull centos/python-34-centos7
apiVersion: v1
kind: Template
metadata:
name: mattermost
objects:
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${APPLICATION_NAME}
spec: