Skip to content

Commit

Permalink
Local env. development with skaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
dphadatare committed Jul 27, 2022
1 parent c729ca9 commit 29b9084
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
42 changes: 42 additions & 0 deletions skaffold.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 29b9084

Please sign in to comment.