Commit 2d8150bb authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Rémy Coutable

GDK on minikube

parent cf0ca771
......@@ -37,6 +37,9 @@ If you want to use Windows, you can try [our instructions for Windows Subsystem
Or if you want to use a slower virtualized installation with [Vagrant](https://www.vagrantup.com/),
please see the [instructions for using Vagrant with VirtualBox or Docker](doc/vagrant.md).
You can also install GDK on [Minikube](https://github.com/kubernetes/minikube),
see [kubernetes docs](doc/kubernetes.md).
After installation [learn how to use GDK](doc/howto/README.md)
If you have an old installation [update your existing GDK installation](doc/update-gdk.md)
......
# Install GDK on Minikube
GDK can be deployed to Minikube / Kubernetes.
Note that this setup is an experimental phase.
You won't be able to developer GitLab using this strategy yet.
See [issue about](https://gitlab.com/gitlab-org/gitlab-development-kit/issues/243) for more details.
## How to use it?
1. Clone GDK repository
1. Start Minikube using `minikube start`
1. Create pod using `kubectl create -f gdkube.yml`
1. See starting pod using `kubectl get pods`
1. Wait until GDK starts, see a progress in logs `kubectl logs -f gdk-[pod-id]`
1. Get the URL to GDK by typing `minikube service gdk --url`
1. Open GDK in the browser
apiVersion: v1
kind: Service
metadata:
name: gdk
labels:
app: gdk
spec:
ports:
- port: 3000
selector:
app: gdk
type: NodePort
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gdk
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: gdk
spec:
containers:
- name: gdk
image: registry.gitlab.com/gitlab-org/gitlab-development-kit
imagePullPolicy: Always
ports:
- name: gdk
containerPort: 3000
command:
- /bin/bash
- -c
- >
source /home/gdk/.bash_profile;
gem install gitlab-development-kit;
cd /home/gdk;
gdk init;
cd gitlab-development-kit;
gdk install;
echo 0.0.0.0 > host;
gdk run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment