Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
3be08a1
Create file
suma23 Sep 29, 2022
5fa126b
Update coit-frontend-ci.yml
suma23 Sep 29, 2022
d894cbc
Update coit-frontend-ci.yml
suma23 Sep 29, 2022
1acc8ae
Update file
suma23 Sep 29, 2022
34d8b9c
Update coit-frontend-ci.yml
suma23 Sep 30, 2022
f31407d
Update coit-frontend-ci.yml
suma23 Sep 30, 2022
0c5b0cb
Update coit-frontend-ci.yml
suma23 Sep 30, 2022
47d5594
Update coit-frontend-deployment.yaml
suma23 Sep 30, 2022
2179a2f
Update coit-frontend-deployment.yaml
suma23 Sep 30, 2022
a3730c4
Update service-coit-frontend-lb.yaml
suma23 Sep 30, 2022
5e5d721
Update coit-frontend-ci.yml
suma23 Sep 30, 2022
956f35b
Update coit-frontend-ci.yml
suma23 Sep 30, 2022
dd7157c
Update coit-frontend-deployment.yaml
suma23 Sep 30, 2022
f9ca354
Update coit-frontend-deployment.yaml
suma23 Sep 30, 2022
845136c
Update coit-frontend-ci.yml
suma23 Sep 30, 2022
f6bdaf1
Update coit-frontend-ci.yml
suma23 Sep 30, 2022
35705f3
kustomize
suma2016 Oct 1, 2022
68a5829
Update coit-frontend-ci.yml
suma23 Oct 1, 2022
cd810f2
Update README.md
suma23 Oct 3, 2022
9db683d
testing branch rules
suma2016 Oct 3, 2022
418b95a
Update README.md
suma23 Oct 3, 2022
9a7c25e
Update README.md
suma23 Oct 3, 2022
42687dd
Merge branch 'feature' into develop
suma23 Oct 3, 2022
191b40e
Update README.md
suma23 Oct 3, 2022
1d9aec9
Update README.md
suma23 Oct 3, 2022
b8dfa88
Merge branch 'feature' into develop
suma23 Oct 3, 2022
801e061
Merge pull request #3 from suma23/develop
suma23 Oct 3, 2022
2c1fb4b
Update file
suma23 Oct 3, 2022
34f9be9
Update file1
suma23 Oct 3, 2022
34d70bf
Update file1
suma23 Oct 3, 2022
40c064b
Update file1
suma23 Oct 3, 2022
f8f01bb
Delete file
suma23 Oct 3, 2022
b3d9959
Delete file1
suma23 Oct 3, 2022
f621113
Delete file
suma23 Oct 3, 2022
ebc2a50
Delete file1
suma23 Oct 3, 2022
bb55299
Create PR
suma23 Oct 3, 2022
f725f96
Update PR
suma23 Oct 3, 2022
b935da2
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
2fe7c0c
Update coit-frontend-deployment.yaml
suma23 Oct 3, 2022
79b3c43
updating yaml files with my docker username
suma2016 Oct 3, 2022
96a1e07
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
b9c3703
Delete coit-frontend-ci.yml
suma23 Oct 3, 2022
2e3724b
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
1dd4d56
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
6e7c510
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
3321d88
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
210fba2
Delete PR
suma23 Oct 3, 2022
8517e51
sffs
suma2016 Oct 3, 2022
7f77d86
Merge branch 'develop' into feature
suma23 Oct 3, 2022
38e2bee
Create P1
suma23 Oct 3, 2022
d35c347
java
suma2016 Oct 3, 2022
009da07
javacommit
suma2016 Oct 3, 2022
d3e1976
javacommit
suma2016 Oct 3, 2022
02abd6a
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
28286f7
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
50a27fa
java
suma2016 Oct 3, 2022
4420987
java
suma2016 Oct 3, 2022
b9c1732
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
0da83ed
java
suma2016 Oct 3, 2022
185b761
jva
suma2016 Oct 3, 2022
4c9e481
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
efcf0f4
image
suma2016 Oct 3, 2022
03864c9
Merge branch 'feature' of github.com:suma23/coit-simple-microservice …
suma2016 Oct 3, 2022
b586dfe
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
55f5b62
Update kustomization.yaml
suma23 Oct 3, 2022
e254776
Merge branch 'feature' of github.com:suma23/coit-simple-microservice …
suma2016 Oct 3, 2022
628a8f3
suma
suma2016 Oct 3, 2022
7204315
suma
suma2016 Oct 3, 2022
492dac1
suma
suma2016 Oct 3, 2022
8b37621
suma
suma2016 Oct 3, 2022
af835d3
suma
suma2016 Oct 3, 2022
a2f4341
suma
suma2016 Oct 3, 2022
e0e2990
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
240e021
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
78255f2
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
e0b9131
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
9f86f74
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
99d6116
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
3ff45f2
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
684d1a2
suma
suma2016 Oct 3, 2022
b333c24
suma
suma2016 Oct 3, 2022
c58f5f3
suma
suma2016 Oct 3, 2022
a16773f
suma
suma2016 Oct 3, 2022
9a78fee
suma
suma2016 Oct 3, 2022
0f3ecf4
Merge branch 'develop' into feature
suma23 Oct 3, 2022
010afb5
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
a21a69b
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
31eb1d8
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
52dfe0c
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
9f2c1a8
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
fddeaa3
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
c0820ca
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
5d45421
Update coit-frontend-ci.yml
suma23 Oct 3, 2022
83c5f67
Update Dockerfile-multistage
suma23 Oct 3, 2022
a05cda0
Update App.js
suma23 Oct 3, 2022
a87d051
Update Dockerfile-multistage
suma23 Oct 3, 2022
be8c287
Update kustomization.yaml
suma23 Oct 3, 2022
f9d43f7
Update kustomization.yaml
suma23 Oct 3, 2022
69d7e6c
Update kustomization.yaml
suma23 Oct 3, 2022
8c42387
Update coit-backend1-deployment.yaml
suma23 Oct 3, 2022
f29d680
fds
suma2016 Oct 3, 2022
23519c5
Update coit-backend1-deployment.yaml
suma23 Oct 3, 2022
66af723
Update coit-backend1-deployment.yaml
suma23 Oct 4, 2022
38ac504
fdsfads
suma2016 Oct 4, 2022
5b67f7a
Merge branch 'feature' of github.com:suma23/coit-simple-microservice …
suma2016 Oct 4, 2022
5bbee0b
Update coit-frontend-ci.yml
suma23 Oct 4, 2022
b02457d
Update coit-frontend-ci.yml
suma23 Oct 4, 2022
69fceb0
Update coit-frontend-ci.yml
suma23 Oct 4, 2022
aff8243
Update coit-frontend-ci.yml
suma23 Oct 4, 2022
b0220a5
fdssfd
suma2016 Oct 4, 2022
649e606
Merge branch 'feature' of github.com:suma23/coit-simple-microservice …
suma2016 Oct 4, 2022
da33708
s
suma2016 Oct 4, 2022
4ae8d47
sf
suma2016 Oct 4, 2022
75c6c12
latest
suma2016 Oct 4, 2022
eb88a7e
Update coit-frontend-ci.yml
suma23 Oct 4, 2022
f7a63ff
Update kustomization.yaml
suma23 Oct 4, 2022
ed5f4aa
Update service-coit-frontend-lb.yaml
suma23 Oct 4, 2022
4b2a9df
Update coit-frontend-deployment.yaml
suma23 Oct 4, 2022
30fd728
Update coit-backend1-deployment.yaml
suma23 Oct 4, 2022
e7733d4
Update service-coit-backend1-lb.yaml
suma23 Oct 4, 2022
18e3703
Update coit-backend1-deployment.yaml
suma23 Oct 4, 2022
2112cb3
Update coit-backend2-deployment.yaml
suma23 Oct 4, 2022
7c4d055
Update kustomization.yaml
suma23 Oct 4, 2022
431c539
Update kustomization.yaml
suma23 Oct 4, 2022
44a247a
Update kustomization.yaml
suma23 Oct 4, 2022
541112c
fsdfad
suma2016 Oct 4, 2022
98cc366
fwdfwg
suma2016 Oct 4, 2022
f125e2f
Update kustomization.yaml
suma23 Oct 4, 2022
5d2d1f0
Update kustomization.yaml
suma23 Oct 4, 2022
d3ead7d
Update coit-frontend-ci.yml
suma23 Oct 4, 2022
dda5542
fdg
suma2016 Oct 4, 2022
5640210
Merge branch 'feature' of github.com:suma23/coit-simple-microservice …
suma2016 Oct 4, 2022
cdb4482
Update coit-frontend-deployment.yaml
suma23 Oct 4, 2022
420f750
Update sumaimagejava2-deployment.yaml
suma23 Oct 4, 2022
234fa32
Update sumapython-deployment.yaml
suma23 Oct 4, 2022
88b823b
Update coit-frontend-ci.yml
suma23 Oct 4, 2022
413255d
Update kustomization.yaml
suma23 Oct 4, 2022
7795346
Update kustomization.yaml
suma23 Oct 4, 2022
3819b93
Update kustomization.yaml
suma23 Oct 4, 2022
d13fe01
Update App.js
suma23 Oct 4, 2022
06c9a29
dfsfs
suma2016 Oct 5, 2022
0fad302
fsf
suma2016 Oct 5, 2022
ca516da
fsf
suma2016 Oct 5, 2022
2dffb6c
Merge branch 'develop' into feature
suma23 Oct 5, 2022
e02c3c8
fdsf
suma2016 Oct 5, 2022
1724ef3
Merge branch 'feature' of github.com:suma23/coit-simple-microservice …
suma2016 Oct 5, 2022
1a78d26
dsafg
suma2016 Oct 5, 2022
9ecca54
Update coit-frontend-ci.yml
suma23 Oct 5, 2022
6d39772
Update App.js
suma23 Oct 5, 2022
81754bb
Update sumaimagejava2-config.yaml
suma23 Oct 5, 2022
37f48cb
Create production.yaml
suma23 Oct 6, 2022
8214243
Update production.yaml
suma23 Oct 6, 2022
8acb59f
Update production.yaml
suma23 Oct 6, 2022
95c51de
Update production.yaml
suma23 Oct 6, 2022
82443c6
fadf
suma2016 Oct 6, 2022
4725a62
Merge branch 'feature' of github.com:suma23/coit-simple-microservice …
suma2016 Oct 6, 2022
799259d
Update production.yaml
suma23 Oct 6, 2022
b7c1439
Update production.yaml
suma23 Oct 6, 2022
bd0f184
Update production.yaml
suma23 Oct 6, 2022
0b91100
Update production.yaml
suma23 Oct 7, 2022
d121b96
Update production.yaml
suma23 Oct 7, 2022
4a34107
Update production.yaml
suma23 Oct 7, 2022
f4b54bb
Update production.yaml
suma23 Oct 7, 2022
0ae1a63
feature
suma2016 Oct 7, 2022
c125c15
devsecops
suma2016 Nov 14, 2022
7faac52
Update coit-frontend-deployment.yaml
suma23 Nov 14, 2022
083748e
Create 1
suma23 Nov 14, 2022
c927ef1
Update usesignedimages.yaml
suma23 Nov 14, 2022
c75c707
Create Jenkinsfile
suma23 Nov 15, 2022
b90ff66
Update Jenkinsfile
suma23 Nov 15, 2022
5ce4eed
Update Jenkinsfile
suma23 Nov 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 80 additions & 20 deletions .github/workflows/coit-frontend-ci.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,97 @@
# This is a basic workflow to help you get started with Actions

name: CI for coit-frontend

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "develop" branch
'on':
push:
branches: [ "develop" ]
branches:
- develop
pull_request:
branches: [ "develop" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

branches:
- develop
workflow_dispatch: null
env:
sonarscannerversion: 4.7.0.2747-linux
PROJECT_ID: '${{ secrets.GKE_PROJECT }}'
GKE_CLUSTER: githubactions
GKE_ZONE: us-central1-c
sonarqube_project: '${{ secrets.SONARQUBE_PROJECT }}'
api_key: '${{ secrets.API_KEY }}'
sonarqube_url: '${{ secrets.SONARQUBE_URL }}'
jobs:
buildandpush:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup Sonar-Scanner
run: >
wget
"https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$sonarscannerversion.zip"

unzip sonar-scanner-cli-$sonarscannerversion.zip -d $HOME/sonarqube

chmod 755
$HOME/sonarqube/sonar-scanner-$sonarscannerversion/bin/sonar-scanner
- name: Scan the frontend project
run: >
cd coit-frontend

$HOME/sonarqube/sonar-scanner-$sonarscannerversion/bin/sonar-scanner
\
-Dsonar.projectKey=$sonarqube_project \
-Dsonar.sources=. \
-Dsonar.host.url=$sonarqube_url \
-Dsonar.login=$api_key
- name: Run Unit Tests
run: |
cd coit-frontend
npm test || true
- name: Check the Vulnaribilities of Dependencies
run: |
cd coit-frontend
npm audit || true
- name: Docker Login
env:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKERHUB_PASSWORD: '${{ secrets.DOCKERHUB_PASSWORD }}'
DOCKERHUB_USERNAME: '${{ secrets.DOCKERHUB_USERNAME }}'
run: |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD

- name: Build the container Image
run: |
docker build coit-frontend -t coitlearning/coit-frontend:latest -f coit-frontend/Dockerfile-multistage

docker build coit-frontend -t 9676164428/coit-frontend:v1 -f coit-frontend/Dockerfile-multistage
docker build coit-backend1 -t 9676164428/sumaimagejava2:v1 -f coit-backend1/Dockerfile-multistage
docker build coit-backend2 -t 9676164428/sumapython:v1 -f coit-backend2/Dockerfile
- name: Push the container Image
run: |
docker push coitlearning/coit-frontend:latest
docker push 9676164428/coit-frontend:v1
docker push 9676164428/sumaimagejava2:v1
docker push 9676164428/sumapython:v1


- uses: >-
google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
with:
service_account_key: '${{ secrets.GKE_SA_KEY }}'
project_id: '${{ secrets.GKE_PROJECT }}'
- uses: >-
google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
with:
cluster_name: '${{ env.GKE_CLUSTER }}'
location: '${{ env.GKE_ZONE }}'
credentials: '${{ secrets.GKE_SA_KEY }}'
- name: Deploy the GKE Cluster
run: |
cd kustomize/environments/preview
kubectl apply -k .
- name: Check the sonarqube report here
run: |
SONAR_URL=`kubectl get svc sonarqube-sonarqube --output jsonpath='{.status.loadBalancer.ingress[0].ip}' -n sonarqube`
echo "The SonarQube Reports are available at $SONAR_URL"
- name: Wait for 60 seconds and get the preview of the applicaton
run: |
sleep 60
PRIVEW_URL=`kubectl get svc coit-frontend --output jsonpath='{.status.loadBalancer.ingress[0].ip}' -n suma`
echo "This is app preview URL $PRIVEW_URL"


# - name: Delete preview namespace
# run: |
# sleep 15m
# kubectl delete namespace preview

52 changes: 52 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy to production
on:
create:
tags:
- 'v*'
workflow_dispatch: null

env:
sonarscannerversion: 4.7.0.2747-linux
PROJECT_ID: '${{ secrets.GKE_PROJECT }}'
GKE_CLUSTER: githubactions
GKE_ZONE: us-central1-c
sonarqube_project: '${{ secrets.SONARQUBE_PROJECT }}'
api_key: '${{ secrets.API_KEY }}'
sonarqube_url: '${{ secrets.SONARQUBE_URL }}'

jobs:
buildandpush:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Docker Login
env:
DOCKERHUB_PASSWORD: '${{ secrets.DOCKERHUB_PASSWORD }}'
DOCKERHUB_USERNAME: '${{ secrets.DOCKERHUB_USERNAME }}'
run: |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
- name: Build the container Image
run: |
docker build coit-frontend -t 9676164428/coit-frontend:latest -f coit-frontend/Dockerfile-multistage

- name: Push the container Image
run: |
docker push 9676164428/coit-frontend:latest

- uses: >-
google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
with:
service_account_key: '${{ secrets.GKE_SA_KEY }}'
project_id: '${{ secrets.GKE_PROJECT }}'
- uses: >-
google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
with:
cluster_name: '${{ env.GKE_CLUSTER }}'
location: '${{ env.GKE_ZONE }}'
credentials: '${{ secrets.GKE_SA_KEY }}'

- name: Deploy the GKE Cluster
run: |
cd kustomize/environments/production
kubectl apply -k .
23 changes: 23 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
pipeline {
agent any

stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}

stage('sign the container image') {
steps {
sh 'cosign version'
sh 'cosign sign --key cosign.key 9676164428/coit-frontend:v1'
}
}
}
}
1 change: 1 addition & 0 deletions P1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ To learn more about Kubernetes and other related topics check the following exam
* [Docker Compose in Practice](https://github.com/rinormaloku/k8s-mastery/tree/docker-compose)
* [Istio around everything else series](https://rinormaloku.com/series/istio-around-everything-else/)
* [Simple CI/CD for Kubernetes with Azure DevOps](https://www.orange-networks.com/blogs/224-azure-devops-ci-cd-pipeline-to-deploy-to-kubernetes)
* Envoy series - to be added!!
1 change: 1 addition & 0 deletions coit-frontend/1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 6 additions & 0 deletions coit-frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"main.css": "static/css/main.6469d74d.css",
"main.css.map": "static/css/main.6469d74d.css.map",
"main.js": "static/js/main.d1de9d00.js",
"main.js.map": "static/js/main.d1de9d00.js.map"
}
3 changes: 1 addition & 2 deletions coit-frontend/build/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Test file

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/sa-icon.ico"><title>Coit Simple Application</title><link href="/static/css/main.6469d74d.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.d1de9d00.js"></script></body></html>
15 changes: 15 additions & 0 deletions coit-frontend/build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "Coit Message Analysis",
"name": "Analyse Messages",
"icons": [
{
"src": "sa-icon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
Binary file added coit-frontend/build/sa-icon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions coit-frontend/build/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions coit-frontend/build/static/css/main.6469d74d.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions coit-frontend/build/static/css/main.6469d74d.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions coit-frontend/build/static/js/main.d1de9d00.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions coit-frontend/build/static/js/main.d1de9d00.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coit-frontend/knative_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
template:
spec:
containers:
- image: coitlearning/coit-frontend:v15
- image: 9676164428/coit-frontend:v15
env:
- name: COIT_BACKEND_URL
value: "http://coit-backend1.102.12.12.45.sslip.io"
Expand Down
2 changes: 1 addition & 1 deletion coit-frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class App extends Component {
};

analyzeSentence() {
fetch('http://54.163.98.246:8080/sentiment', {
fetch('http://35.222.163.170:8080/sentiment', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand Down
30 changes: 0 additions & 30 deletions coit-frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1177,13 +1177,6 @@
"resolved" "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz"
"version" "2.2.0"

"bindings@^1.5.0":
"integrity" "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ=="
"resolved" "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz"
"version" "1.5.0"
dependencies:
"file-uri-to-path" "1.0.0"

"bluebird@^3.4.7":
"integrity" "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA=="
"resolved" "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz"
Expand Down Expand Up @@ -3186,11 +3179,6 @@
"loader-utils" "^1.0.2"
"schema-utils" "^0.3.0"

"[email protected]":
"integrity" "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="
"resolved" "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz"
"version" "1.0.0"

"filename-regex@^2.0.0":
"integrity" "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY="
"resolved" "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz"
Expand Down Expand Up @@ -3371,19 +3359,6 @@
"resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
"version" "1.0.0"

"fsevents@^1.1.3", "fsevents@^1.2.7":
"integrity" "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw=="
"resolved" "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz"
"version" "1.2.13"
dependencies:
"bindings" "^1.5.0"
"nan" "^2.12.1"

"fsevents@~2.3.2":
"integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="
"resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
"version" "2.3.2"

"function-bind@^1.1.1":
"integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
"resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
Expand Down Expand Up @@ -5374,11 +5349,6 @@
"resolved" "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz"
"version" "0.0.7"

"nan@^2.12.1":
"integrity" "sha512-UdAqHyFngu7TfQKsCBgAA6pWDkT8MAO7d0jyOecVhN5354xbLqdn8mV9Tat9gepAupm0bt2DbeaSC8vS52MuFA=="
"resolved" "https://registry.npmjs.org/nan/-/nan-2.16.0.tgz"
"version" "2.16.0"

"nanomatch@^1.2.9":
"integrity" "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA=="
"resolved" "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz"
Expand Down
Empty file added f
Empty file.
29 changes: 29 additions & 0 deletions kustomize/coit-frontend/coit-frontend-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment # 1
metadata:
name: coit-frontend
labels:
app: coit-frontend
spec:
selector:
matchLabels:
app: coit-frontend
replicas: 3 # 2
minReadySeconds: 15
strategy:
type: RollingUpdate # 3
rollingUpdate:
maxUnavailable: 1 # 4
maxSurge: 1 # 5
template:
metadata:
labels:
app: coit-frontend # 6
app.kubernetes.io/name: coit-frontend
spec:
containers:
- image: 9676164428/coit-frontend:v1
imagePullPolicy: Always # 7
name: coit-frontend
ports:
- containerPort: 80
12 changes: 12 additions & 0 deletions kustomize/coit-frontend/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- coit-frontend-deployment.yaml
- service-coit-frontend-lb.yaml

replicas:
- name: coit-frontend
count: 3

namespace: suma
12 changes: 12 additions & 0 deletions kustomize/coit-frontend/service-coit-frontend-lb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service # 1
metadata:
name: coit-frontend
spec:
type: LoadBalancer
ports:
- port: 80 # 3
protocol: TCP # 4
targetPort: 80 # 5
selector: # 6
app: coit-frontend # 7
18 changes: 18 additions & 0 deletions kustomize/environments/preview/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../coit-frontend
- ../../sumaimagejava2
- ../../sumapython

replicas:
- name: coit-frontend
count: 3
- name: sumaimagejava2
count: 3
- name: sumapython
count: 3


namespace: suma
Loading