Deploy from gitlab to kubernetes
407
This is repository that builds Docker Image with all scripts needed to deploy to Kubernetes from GitLab CI.
It is used to give the GitLab Demo which contains detailed instructions to reproduce.
It basically consist of two stages:
The build script does:
Dockerfile,docker build to build Docker Image,The deploy script does:
During deployment automatically PostgreSQL is provisioned unless DISABLE_POSTGRES is specified.
We currently use preconfigured credentials. These credentials are used for defining DATABASE_URL
of format: postgres://user:password@postgres-host:postgres-port/postgres-database.
DISABLE_POSTGRES: "yes": disable automatic deployment of PostgreSQL,POSTGRES_USER: "my-user": use custom username for PostgreSQL,POSTGRES_PASSWORD: "password": use custom password for PostgreSQL,POSTGRES_DB: "my database": use custom database name for PostgreSQL,You can see existing working examples:
Simply fork this repository. As soon as you push your changes, the new docker image with all scripts will be build. You can then start using your own docker image hosted on your Container Registry.
Basically, configure Kubernetes Service in your project settings and
copy-paste this .gitlab-ci.yml.
This project uses latest version of kubectl in order to fix problems with kubectl rollout status.
As of today it is v1.7.0-alpha-3.
MIT, GitLab, 2016-2017
Content type
Image
Digest
Size
100.9 MB
Last updated
about 7 years ago
docker pull asusk7m550/deploy-k8s