Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increased replica count to 5 #13

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 14 additions & 14 deletions manifests/deploy-microservice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ kind: Deployment
apiVersion: apps/v1
metadata:
labels:
app: teama-microservice
app: perceived-withdrawal-microservice
stack: frontend
source: demo
name: teama-microservice
name: perceived-withdrawal-microservice
namespace: microservices
spec:
replicas: 3
replicas: 5
selector:
matchLabels:
run: teama-microservice
run: perceived-withdrawal-microservice
template:
metadata:
labels:
app: teama-microservice
run: teama-microservice
app: perceived-withdrawal-microservice
run: perceived-withdrawal-microservice
source: demo
spec:
containers:
- image: 219099013464.dkr.ecr.us-west-2.amazonaws.com/teama-microservice
name: teama-microservice
- image: 219099013464.dkr.ecr.us-west-2.amazonaws.com/perceived-withdrawal-microservice
name: perceived-withdrawal-microservice
ports:
- name: web
containerPort: 8080
Expand All @@ -31,13 +31,13 @@ kind: Service
apiVersion: v1
metadata:
labels:
app: teama-microservice-service
name: teama-microservice-service
app: perceived-withdrawal-microservice-service
name: perceived-withdrawal-microservice-service
namespace: microservices
spec:
selector:
source: demo
app: teama-microservice
app: perceived-withdrawal-microservice
ports:
- name: web
protocol: TCP
Expand All @@ -51,15 +51,15 @@ kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: teama-ingress
name: perceived-withdrawal-ingress
namespace: microservices
spec:
rules:
- http:
paths:
- path: /teama(/|$)(.*)
- path: /perceived-withdrawal(/|$)(.*)
backend:
serviceName: teama-microservice-service
serviceName: perceived-withdrawal-microservice-service
servicePort: 30201


11 changes: 6 additions & 5 deletions src/main/resources/META-INF/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
<head>
<meta charset="utf-8">
<title>Quarkus Microservice</title>
<link href='https://fonts.googleapis.com/css?family=Creepster' rel='stylesheet'>
<style>
body {
color: #ffffff;
background-color: purple;
font-family: Arial, sans-serif;
font-size: 14px;
color: red;
background-color: black;
font-family: 'Creepster';
font-size: 28;
}

h1 {
Expand All @@ -27,7 +28,7 @@
<body>
<div align="center">
<h1>Welcome to V1 the quarkus web application</h1>
<h2>This application will be deployed on Kubernetes.</h2>
<h2>There will be no survivors.</h2>
</div>
</body>
</html>