Skip to content

sfl0r3nz05/GitOps-Demo

Repository files navigation

GitOps experimental repository for demonstration purposes.

  • The purpose of this repository is to carry out demonstrations as an example of GitOps use, considering the following steps:

    1. App source code repository
    2. CI pipeline creating a container image
    3. Container image registry
    4. Kubernetes manifests repository
    5. GitOps engine syncing manifests to one or more clusters and detecting drifts

    image

Requirements

  1. Install a demo cluster based on Minikube is a requierements for all tests

Repository structure:

|_README.md
|_/documentation
|_/source-code
|_/docker-build-shipwright-kaniko
|_/docker-build-kaniko
  • /documentation: contains *.md files with project information.
  • /source-code: contains the source code to be used in the other folders.
  • /docker-build-shipwright-kaniko: contains the .yaml files to send a container to a public registry using shipwright and kaniko.
  • /docker-build-kaniko: contains the .yaml file to send a container to a public registry using kaniko.

Building a Container Using Shipwright and kaniko in Kubernetes

Pre-requisites: A deployed cluster. E.g.: Minikube.

  1. Prepare the cluster to support Shipwright and select Kaniko as build strategy
  2. Follow these steps to build a container using kaniko as Shipwright build strategy.

Building a Container using kaniko

Pre-requisites: A deployed cluster. E.g.: Minikube.

  1. Follow these steps to build a container using kaniko.

Deploy a Service using kuztomize

Pre-requisites: A deployed cluster. E.g.: Minikube.

  1. Follow these steps to deploy a service using kuztomize.