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

Commit

Permalink
V0.9.8 (#146)
Browse files Browse the repository at this point in the history
* v0.9.8

* v0.9.8
  • Loading branch information
rimusz authored Oct 24, 2016
1 parent a1ce07b commit 885f97d
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/Kube-Solo/Kube-Solo-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.9.7</string>
<string>0.9.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>305</string>
<string>309</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
47 changes: 30 additions & 17 deletions src/cloud-init/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ coreos:
ExecStart=/bin/sh -c '[[ -d /data/var/lib/rkt ]] || mkdir -p /data/var/lib/rkt && /usr/bin/chown root:rkt /data/var/lib/rkt && /usr/bin/chmod g+s /data/var/lib/rkt'
ExecStart=/bin/sh -c '/usr/bin/chown root:rkt /data/var/lib/rkt && /usr/bin/chmod g+s /data/var/lib/rkt'
ExecStart=/bin/sh -c '[[ -d /data/opt/bin ]] || mkdir -p /data/opt/bin'
ExecStart=/bin/sh -c '[[ -d /data/kubernetes/manifests ]] || mkdir -p /data/kubernetes/manifests'
ExecStart=/bin/sh -c '[[ -d /data/kubernetes/manifests ]] || mkdir -p /data/kubernetes/manifests && chmod 777 -R /data/kubernetes'
ExecStart=/bin/sh -c '[[ -d /data/kubelet ]] || mkdir -p /data/kubelet'
ExecStart=/bin/sh -c 'sudo ln -s /data/kubelet /var/lib/kubelet'
ExecStart=/bin/sh -c 'sudo mkdir -p /opt/bin/ && sudo ln -s /data/opt/bin/socat /opt/bin/socat'
Expand Down Expand Up @@ -126,18 +126,38 @@ coreos:
Environment=DOCKER_OPTS='--insecure-registry="0.0.0.0/0"'
- name: update-engine.service
command: stop
- name: kube-certs.service
command: start
content: |
[Unit]
Description=Generate Kubernetes API Server certificates
ConditionPathExists=/opt/sbin/make-certs.sh
Requires=network-online.target persistent-data-checks.service etcd2.service
After=network-online.target persistent-data-checks.service etcd2.service
# ConditionPathExists=!/data/kubernetes/ca.crt
[Service]
EnvironmentFile=/etc/environment
ExecStartPre=-/usr/sbin/groupadd -r kube-cert
ExecStartPre=/usr/bin/chmod 755 /opt/sbin/make-certs.sh
ExecStart=/opt/sbin/make-certs.sh ${COREOS_PUBLIC_IPV4} IP:${COREOS_PUBLIC_IPV4},IP:10.100.0.1,DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.cluster.local
ExecStartPost=/bin/bash -c 'sleep 20'
Type=oneshot
RemainAfterExit=true
- name: kube-apiserver.service
command: start
content: |
[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
Requires=etcd2.service docker.service flanneld.service persistent-data-checks.service
After=etcd2.service docker.service flanneld.service persistent-data-checks.service
ConditionPathExists=/data/opt/bin/kube-apiserver
Requires=etcd2.service docker.service flanneld.service kube-certs.service
After=etcd2.service docker.service flanneld.service kube-certs.service
[Service]
LimitNOFILE=491521
# Check for certs
ExecStartPre=/bin/sh -c '[[ -f /data/kubernetes/ca.crt ]] || /opt/sbin/kube-certs.sh'
ExecStartPre=/bin/sh -c 'while [ ! -f /data/kubernetes/ca.crt ]; do sleep 1; done'
ExecStartPre=/bin/sh -c 'while [ ! -f /data/kubernetes/server.cert ]; do sleep 1; done'
ExecStartPre=/bin/sh -c 'while [ ! -f /data/kubernetes/server.key ]; do sleep 1; done'
# Check for binary
ExecStartPre=/bin/sh -c 'while [ ! -f /data/opt/bin/kube-apiserver ]; do sleep 1; done'
# Start API server
Expand All @@ -158,7 +178,7 @@ coreos:
--bind-address=0.0.0.0 \
--logtostderr=true
Restart=always
RestartSec=10
RestartSec=5
- name: kube-controller-manager.service
command: start
content: |
Expand Down Expand Up @@ -266,9 +286,9 @@ write-files:
# Copyright 2014 The Kubernetes Authors All rights reserved.
#

set -o errexit
set -o nounset
set -o pipefail
#set -o errexit
#set -o nounset
#set -o pipefail

cert_ip=$1
extra_sans=${2:-}
Expand All @@ -286,7 +306,7 @@ write-files:

tmpdir=$(mktemp -d --tmpdir kubernetes_cacert.XXXXXX)
cd $tmpdir

trap 'rm -rf "${tmpdir}"' EXIT
#
if [ ! -f /data/opt/tmp/easy-rsa.tar.gz ]
Expand All @@ -313,17 +333,10 @@ write-files:
cp -p pki/ca.crt "${cert_dir}/ca.crt"
cp -p pki/issued/kubecfg.crt "${cert_dir}/kubecfg.crt"
cp -p pki/private/kubecfg.key "${cert_dir}/kubecfg.key"

# Make server certs accessible to apiserver.
echo 3
chgrp $cert_group "${cert_dir}/server.key" "${cert_dir}/server.cert" "${cert_dir}/ca.crt"
chmod 660 "${cert_dir}/server.key" "${cert_dir}/server.cert" "${cert_dir}/ca.crt"
echo 4
- path: /opt/sbin/kube-certs.sh
permissions: '0755'
content: |
#!/bin/bash
source /etc/environment
/opt/sbin/make-certs.sh ${COREOS_PUBLIC_IPV4} IP:${COREOS_PUBLIC_IPV4},IP:10.100.0.1,DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.cluster.local
- path: /opt/sbin/restart-kube-units.sh
permissions: '0755'
content: |
Expand Down
2 changes: 2 additions & 0 deletions src/destroy.command
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ LOOP=1
while [ $LOOP -gt 0 ]
do
VALID_MAIN=0
echo " "
echo "VM will be stopped (if is running) and destroyed !!!"
echo " "
echo "Do you want to continue [y/n]"

read RESPONSE
Expand Down
5 changes: 3 additions & 2 deletions src/first-init.command
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ echo " "
#
install_k8s_add_ons

# download latest version of deis, helmc and helm clients
# download latest version of docker, deis, helmc and helm clients
# install Helm Tiller
download_osx_clients

Expand All @@ -113,13 +113,14 @@ export DOCKER_TLS_VERIFY=
export DOCKER_CERT_PATH=

#
echo "--------- "
echo " "
echo "Installation has finished, Kube Solo VM is up and running !!!"
echo " "
echo "Assigned static IP to VM/node: $vm_ip"
echo " "
echo "You can control this App via status bar icon... "
echo "--------"
echo "---------"

# remove unfinished_setup file if there is such one
rm -f ~/kube-solo/logs/unfinished_setup > /dev/null 2>&1
Expand Down
1 change: 1 addition & 0 deletions src/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ rm -f ~/kube-solo/kubernetes/skydns-rc.yaml
rm -f ~/kube-solo/kubernetes/skydns-svc.yaml
rm -f ~/kube-solo/kubernetes/dashboard-controller.yaml
rm -f ~/kube-solo/kubernetes/dashboard-service.yaml
rm -f ~/kube-solo/kubernetes/tiller-deploy-service.yaml
}


Expand Down
4 changes: 2 additions & 2 deletions src/k8s/kube.tgz
Git LFS file not shown
2 changes: 1 addition & 1 deletion src/k8s/kubectl
Git LFS file not shown

0 comments on commit 885f97d

Please sign in to comment.