Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #26 from TheNewNormal/v0.2.1
Browse files Browse the repository at this point in the history
V0.2.1
  • Loading branch information
rimusz committed Mar 18, 2016
2 parents 351924f + 2e6b650 commit 62ad609
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 33 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ How to install Kube-Cluster
-----------
- **OS X 10.10.3** Yosemite or later
- Mac 2010 or later for this to work.
- **Note:** For the fresh install it is recommended to restart your Mac if you have used VirtualBox based VM, as the VirtualBox sometimes messes up networking.


###Install:
Expand All @@ -40,8 +41,8 @@ That allows to share the same images between different `corectl` based Apps and
* It will install `fleetctl, etcdctl and kubectl` to `~/kube-cluster/bin/`
* Kubernetes services will be installed with fleet units which are placed in `~/kube-cluster/fleet`, this allows very easy updates to fleet units if needed.
* [Fleet-UI](http://fleetui.com) via unit file will be installed to check running fleet units
* [Kubernetes UI](http://kubernetes.io/v1.1/docs/user-guide/ui.html) will be instlled as an add-on
* Also [DNS Add On](https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dns) will be installed
* [Kubernetes Dashboard](http://kubernetes.io/docs/user-guide/ui/) will be instlled as an add-on
* Also [DNS addon](https://github.com/kubernetes/kubernetes/blob/release-1.2/cluster/addons/dns/README.md) will be installed
* Via assigned static IPs (which will be shown on first boot and will survive VMs reboots) you can access any port on any CoreOS VM
* Persistent disks `xxx-data.img` will be created and mounted to VMs `/data` for these mount binds:

Expand Down Expand Up @@ -75,8 +76,7 @@ Just start `Kube-Cluster` application and you will find a small icon with the Ku
* `SSH to k8smaster01 and k8snode-01/02` menu options will open VMs shell
* `node1/2 cAdvisor` will open cAdvisor URL in default browser
* [Fleet-UI](http://fleetui.com) dashboard will show running fleet units and etc
* [Kubernetes-UI](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/www) (contributed by [Kismatic.io](http://kismatic.io/)) will show nice Kubernetes Dashboard, where you can check Nodes, Pods, Replication Controllers and etc.

* [Kubernetes Dashboard](http://kubernetes.io/docs/user-guide/ui/) will show nice Kubernetes Dashboard, where you can check Nodes, Pods, Replication and Service Controllers, deploy Apps and etc.


Example ouput of succesfull CoreOS + Kubernetes cluster install:
Expand Down Expand Up @@ -121,7 +121,7 @@ Usage

You're now ready to use Kubernetes cluster.

Some examples to start with [Kubernetes examples](https://github.com/kubernetes/kubernetes/tree/master/examples).
Some examples to start with [Kubernetes examples](http://kubernetes.io/docs/samples/q).

Other links
-----------
Expand Down
6 changes: 3 additions & 3 deletions src/Kube-Cluster/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9531" systemVersion="15D21" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9531"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9532"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
Expand Down Expand Up @@ -669,7 +669,7 @@
<action selector="fleetUI:" target="494" id="H66-cr-Sz1"/>
</connections>
</menuItem>
<menuItem title="Kubernetes-UI" id="p5T-fc-xnA">
<menuItem title="Kubernetes Dashboard" id="p5T-fc-xnA">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="KubernetesUI:" target="494" id="5Xc-5r-fwB"/>
Expand Down
4 changes: 2 additions & 2 deletions src/Kube-Cluster/Kube-Cluster-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.2.0</string>
<string>0.2.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>41</string>
<string>45</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
Binary file modified src/bin/helm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/first-init.command
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ deploy_fleet_units
sleep 2

# generate kubeconfig file
echo Generate kubeconfig file ...
echo Generating kubeconfig file ...
"${res_folder}"/bin/gen_kubeconfig $master_vm_ip
#

Expand Down
2 changes: 1 addition & 1 deletion src/fleet/kube-apiserver.service
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ExecStart=/opt/bin/kube-apiserver \
--etcd_servers=http://127.0.0.1:2379 \
--bind-address=0.0.0.0 \
--logtostderr=true \
--runtime_config=extensions/v1beta1=true,extensions/v1beta1/daemonsets=true
--runtime_config=extensions/v1beta1=true,extensions/v1beta1/deployment=true

Restart=always
RestartSec=10
Expand Down
8 changes: 4 additions & 4 deletions src/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -489,15 +489,15 @@ echo "Installing SkyDNS ..."
#
echo " "
echo "Installing Kubernetes UI ..."
~/kube-cluster/bin/kubectl create -f ~/kube-cluster/kubernetes/kube-ui-rc.yaml
~/kube-cluster/bin/kubectl create -f ~/kube-cluster/kubernetes/kube-ui-svc.yaml
~/kube-cluster/bin/kubectl create -f ~/kube-cluster/kubernetes/dashboard-controller.yaml
~/kube-cluster/bin/kubectl create -f ~/kube-cluster/kubernetes/dashboard-service.yaml
sleep 1
# clean up kubernetes folder
rm -f ~/kube-cluster/kubernetes/kube-system-ns.yaml
rm -f ~/kube-cluster/kubernetes/skydns-rc.yaml
rm -f ~/kube-cluster/kubernetes/skydns-svc.yaml
rm -f ~/kube-cluster/kubernetes/kube-ui-rc.yaml
rm -f ~/kube-cluster/kubernetes/kube-ui-svc.yaml
rm -f ~/kube-cluster/kubernetes/dashboard-controller.yaml
rm -f ~/kube-cluster/kubernetes/dashboard-service.yaml
echo " "
}

Expand Down
23 changes: 11 additions & 12 deletions src/k8s/kube-ui-rc.yaml → src/k8s/dashboard-controller.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-ui-v4
# Keep the name in sync with image version and
# gce/coreos/kube-manifests/addons/dashboard counterparts
name: kubernetes-dashboard-v1.0.0
namespace: kube-system
labels:
k8s-app: kube-ui
version: v4
k8s-app: kubernetes-dashboard
kubernetes.io/cluster-service: "true"
spec:
replicas: 1
selector:
k8s-app: kube-ui
version: v4
k8s-app: kubernetes-dashboard
template:
metadata:
labels:
k8s-app: kube-ui
version: v4
k8s-app: kubernetes-dashboard
kubernetes.io/cluster-service: "true"
spec:
containers:
- name: kube-ui
image: gcr.io/google_containers/kube-ui:v4
- name: kubernetes-dashboard
image: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.0.0
resources:
# keep request = limit to keep this container in guaranteed class
limits:
Expand All @@ -31,10 +30,10 @@ spec:
cpu: 100m
memory: 50Mi
ports:
- containerPort: 8080
- containerPort: 9090
livenessProbe:
httpGet:
path: /
port: 8080
port: 9090
initialDelaySeconds: 30
timeoutSeconds: 5
timeoutSeconds: 30
9 changes: 4 additions & 5 deletions src/k8s/kube-ui-svc.yaml → src/k8s/dashboard-service.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: kube-ui
name: kubernetes-dashboard
namespace: kube-system
labels:
k8s-app: kube-ui
k8s-app: kubernetes-dashboard
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "KubeUI"
spec:
selector:
k8s-app: kube-ui
k8s-app: kubernetes-dashboard
ports:
- port: 80
targetPort: 8080
targetPort: 9090
Binary file modified src/k8s/kube.tgz
Binary file not shown.
Binary file modified src/k8s/kubectl
Binary file not shown.
7 changes: 7 additions & 0 deletions src/up.command
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ fi
# start cluster VMs
start_vms

# generate kubeconfig file
if [ ! -f $HOME/kube-cluster/kube/kubeconfig ]; then
echo Generating kubeconfig file ...
"${res_folder}"/bin/gen_kubeconfig $master_vm_ip
echo " "
fi

# Set the environment variables
# set etcd endpoint
export ETCDCTL_PEERS=http://$master_vm_ip:2379
Expand Down

0 comments on commit 62ad609

Please sign in to comment.