Compare commits
6 Commits
gh/master
...
reset-trav
Author | SHA1 | Date | |
---|---|---|---|
d18d7416a3 | |||
04dce75b10 | |||
675023537c | |||
7f537c1f8e | |||
c2b7d2c1f6 | |||
43e9832f99 |
41
.travis.yml
41
.travis.yml
@@ -1,28 +1,41 @@
|
|||||||
# https://docs.travis-ci.com/user/languages/python/
|
# https://raw.githubusercontent.com/LiliC/travis-minikube/master/.travis.yml
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "3.5"
|
- "3.5"
|
||||||
|
- "3.6"
|
||||||
# https://github.com/LiliC/travis-minikube/blob/master/.travis.yml
|
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
# This moves Kubernetes specific config files.
|
||||||
env:
|
env:
|
||||||
- CHANGE_MINIKUBE_NONE_USER=true
|
- CHANGE_MINIKUBE_NONE_USER=true
|
||||||
|
|
||||||
# --bootstrapper=localkube comes from
|
# command to install dependencies
|
||||||
# https://github.com/kubevirt/containerized-data-importer/issues/93
|
install:
|
||||||
# and
|
# Install byok8s requirements (snakemake, python-kubernetes)
|
||||||
# https://github.com/kubernetes/minikube/issues/2704
|
- pip install -r requirements.txt
|
||||||
|
# Install byok8s cli tool
|
||||||
|
- python setup.py build install
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get update
|
# Do everything from test/
|
||||||
- sudo apt-get install -y coreutils
|
- cd test
|
||||||
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.7.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
# Download kubectl, which is a requirement for using minikube.
|
||||||
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/0.28.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
|
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||||
- sudo minikube start --kubernetes-version=1.11.0 --vm-driver=none --bootstrapper=localkube
|
# Download minikube.
|
||||||
|
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
|
||||||
|
- sudo minikube start --vm-driver=none --kubernetes-version=v1.9.0
|
||||||
|
# Fix the kubectl context, as it's often stale.
|
||||||
- minikube update-context
|
- minikube update-context
|
||||||
|
# Wait for Kubernetes to be up and ready.
|
||||||
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
|
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- kubectl cluster-info
|
- kubectl cluster-info
|
||||||
|
# Verify kube-addon-manager.
|
||||||
|
# kube-addon-manager is responsible for managing other kubernetes components, such as kube-dns, dashboard, storage-provisioner..
|
||||||
|
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl -n kube-system get pods -lcomponent=kube-addon-manager -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1;echo "waiting for kube-addon-manager to be available"; kubectl get pods --all-namespaces; done
|
||||||
|
# Wait for kube-dns to be ready.
|
||||||
|
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl -n kube-system get pods -lk8s-app=kube-dns -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1;echo "waiting for kube-dns to be available"; kubectl get pods --all-namespaces; done
|
||||||
|
# Create example Redis deployment on Kubernetes.
|
||||||
|
- byok8s workflow-alpha params-blue
|
||||||
|
14
README.md
14
README.md
@@ -147,24 +147,22 @@ won't be able to find the kubernetes cluster.)
|
|||||||
for workflow config and param files,
|
for workflow config and param files,
|
||||||
or have a built-in set of params and configs.)
|
or have a built-in set of params and configs.)
|
||||||
|
|
||||||
Run the blue workflow with alpha params:
|
Run the alpha workflow with blue params:
|
||||||
|
|
||||||
```
|
```
|
||||||
byok8s -w workflow-blue -p params-alpha
|
byok8s -w workflow-alpha -p params-blue
|
||||||
```
|
```
|
||||||
|
|
||||||
Run the blue workflow with gamma params, and
|
Run the alpha workflow with red params:
|
||||||
kubernetes configuration details in kube-deets
|
|
||||||
(all json files):
|
|
||||||
|
|
||||||
```
|
```
|
||||||
byok8s -w workflow-blue -p params-gamma
|
byok8s -w workflow-alpha -p params-red
|
||||||
```
|
```
|
||||||
|
|
||||||
Run the red workflow with gamma params, &c:
|
Run the gamma workflow with red params, &c:
|
||||||
|
|
||||||
```
|
```
|
||||||
byok8s -w workflow-red -p params-gamma
|
byok8s -w workflow-gamma -p params-red
|
||||||
```
|
```
|
||||||
|
|
||||||
(NOTE: May want to let the user specify
|
(NOTE: May want to let the user specify
|
||||||
|
Reference in New Issue
Block a user