Skip to content

Instantly share code, notes, and snippets.

deis.com
deis.io
http://kubernetes.io/
https://github.com/deis/deis/tree/v2
Deis (pronounced DAY-iss) is an open source PaaS that makes it easy to deploy and manage applications on your own servers.
PAAS mean platform as a service - something like Amazon apollo.
Deis v2 is powered by kubernetes and has lot of sub projects in it .
I would like you to create few designs for the follwoing projects
@smothiki
smothiki / gist:a9f7bc40f21646c0718b
Created February 18, 2016 17:06
S3 Object Storage testing
1. Test with AWS
a) Builder was able to pass the helth check but no success creating buckets. Reason : might be an issue with my credentials.
- will be trying out with different credentials and permissions.
2. Test with Google Cloud
a) Builder was not passing health checks at all. Outside storage url - https://storage.googleapis.com
3. Ceph backend not yet tested.
// Package cleaner is a background process that compares the kubernetes namespace list with the folders in the local git home directory, deleting what's not in the namespace list
package cleaner
import (
"fmt"
"log"
"os"
"k8s.io/kubernetes/pkg/api"
@smothiki
smothiki / shell session output
Last active March 21, 2016 22:56
test log session output
=== RUN TestTests
Running Suite: Deis Workflow
============================
Random Seed: 1458595389
Will run 112 of 114 specs
$ deis register http://deis.10.3.0.198.xip.io --username=admin --password=admin [email protected]
Registered admin
Logged in as admin
$ deis users:list
@smothiki
smothiki / observations.md
Last active March 22, 2016 20:25
service endpoints api
smothiki$ kubectl get endpoints --all-namespaces -w
NAMESPACE         NAME                    ENDPOINTS
absurd-lakeside   absurd-lakeside         <none>
default           kubernetes              10.0.0.50:443
deis              deis-builder            10.2.44.2:2223
deis              deis-controller         10.2.94.2:8000
deis              deis-database           10.2.44.3:5432
deis              deis-minio              10.2.94.5:9000
deis              deis-registry           10.2.94.3:5000
package tests
import (
"fmt"
"math/rand"
"os"
"regexp"
"sort"
"strconv"
"sync"
package main
import(
"fmt"
"bytes"
"encoding/json"
bjson "github.com/bitly/go-simplejson"
elastic "gopkg.in/olivere/elastic.v3"
)
Cluster of N nodes
Runs 3 or more deis installs with different namesapces
So already componenets are running with same RC but in different namepsaces
Now A queue of test exists
1. Round robin these queue of tests to the exisiting deis install of differents namespaces
2. Each test builds a respective image and update the Image in the RC of the assigned namesapce
curl 10.3.0.144:9200/_search?pretty=true -d '{"query":{"query_string":{"fields" : ["kubernetes",".*"],"query": "august-barbecue"}}}'
@smothiki
smothiki / nodes.md
Created April 15, 2016 21:58
kubectl describe nodes
$ kubectl describe nodes
Name:			ip-172-20-0-245.us-west-1.compute.internal
Labels:			beta.kubernetes.io/instance-type=m3.medium,failure-domain.beta.kubernetes.io/region=us-west-1,failure-domain.beta.kubernetes.io/zone=us-west-1a,kubernetes.io/hostname=ip-172-20-0-245.us-west-1.compute.internal
CreationTimestamp:	Fri, 15 Apr 2016 15:22:08 -0600
Phase:			
Conditions:
  Type		Status	LastHeartbeatTime			LastTransitionTime			Reason			Message
  ----		------	-----------------			------------------			------			-------
  OutOfDisk 	False 	Fri, 15 Apr 2016 15:57:32 -0600 	Fri, 15 Apr 2016 15:57:22 -0600 	KubeletHasSufficientDisk 	kubelet has sufficient disk space available