From 29b90846b948168fbaa9f19562af53df16a3edd8 Mon Sep 17 00:00:00 2001 From: dphadatare Date: Wed, 27 Jul 2022 19:54:33 +0530 Subject: [PATCH] Local env. development with skaffold --- CHANGELOG.md | 15 +++++++++++++++ README.md | 5 +++++ skaffold.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 skaffold.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 76aae6e..98eec1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,21 @@ All notable changes will be documented in this file. Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) principles. +## [3.0.0] - 2022-07-27 + +### Added +- Local development with Skaffold + +## [2.1.0] - 2022-07-27 + +### Added +- SSL certification setup + +## [2.0.0] - 2022-07-27 + +### Added +- fibsequence application production deployment with travis and Google kubernetes Engine + ## [1.0.0] - 2022-07-26 ### Added diff --git a/README.md b/README.md index 11ded48..2b550fe 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,13 @@ Postgres is used to store the generated fib sequence - PersistenetVolumeClaim #### Production Deployment + - Create Github repo - Create travis config file - Tie repo to Travis CI(Or Junkin, CircleCI) - Create Google Cloud Project(Or AWS, Azur) - Add deployment scripts to the repo + +#### Local Development with Skaffold + +Skaffold watch our local project directory for changes and push that change in kubernetes cluster. We have two options to do that. \ No newline at end of file diff --git a/skaffold.yml b/skaffold.yml new file mode 100644 index 0000000..0bd6045 --- /dev/null +++ b/skaffold.yml @@ -0,0 +1,42 @@ +apiVersion: skaffold/v1beta2 +kind: Config +build: + local: + push: false + artifacts: + - image: dphdatare/multi-client + context: client + docker: + dockerfile: Dockerfile.dev + sync: + manual: + - src: 'src/**/*.js' + dest: . + - src: 'src/**/*.css' + dest: . + - src: 'src/**/*.html' + dest: . + - image: dphadatare/multi-server + context: server + docker: + dockerfile: Dockerfile.dev + sync: + manual: + - src: '*.js' + dest: . + - image: dphadatare/multi-worker + context: worker + docker: + dockerfile: Dockerfile.dev + sync: + manual: + - src: 'src/*.js' + dest: . +deploy: + kubectl: + manifests: + - k8s/client-deployment.yaml + - k8s/server-deployment.yaml + - k8s/worker-deployment.yaml + - k8s/server-cluster-ip-service.yaml + - k8s/client-cluster-ip-service.yaml \ No newline at end of file