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

Update deploy-microservice.yml #76

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: {{.Release.Name}}-microservice
{{- $valtag := .Values.tag -}}
{{- if $valtag}}
image: {{.Values.ecr}}/{{.Release.Name}}-microservice:{{ $valtag }}"
image: {{.Values.ecr}}/{{.Release.Name}}-microservice:{{ $valtag }}
{{- else}}
image: {{.Values.ecr}}/{{.Release.Name}}-microservice
{{- end}}
Expand Down
26 changes: 13 additions & 13 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: mild-temper-microservice
app: internal-code-microservice
stack: frontend
source: demo
name: mild-temper-microservice
name: internal-code-microservice
namespace: microservices
spec:
replicas: 3
selector:
matchLabels:
run: mild-temper-microservice
run: internal-code-microservice
template:
metadata:
labels:
app: mild-temper-microservice
run: mild-temper-microservice
app: internal-code-microservice
run: internal-code-microservice
source: demo
spec:
containers:
- image: 219099013464.dkr.ecr.us-west-2.amazonaws.com/mild-temper-microservice
name: mild-temper-microservice
- image: 219099013464.dkr.ecr.us-west-2.amazonaws.com/internal-code-microservice
name: internal-code-microservice
ports:
- name: web
containerPort: 8080
Expand All @@ -31,13 +31,13 @@ kind: Service
apiVersion: v1
metadata:
labels:
app: mild-temper-microservice-service
name: mild-temper-microservice-service
app: internal-code-microservice-service
name: internal-code-microservice-service
namespace: microservices
spec:
selector:
source: demo
app: mild-temper-microservice
app: internal-code-microservice
ports:
- name: web
protocol: TCP
Expand All @@ -51,15 +51,15 @@ kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: mild-temper-ingress
name: internal-code-ingress
namespace: microservices
spec:
rules:
- http:
paths:
- path: /mild-temper(/|$)(.*)
- path: /internal-code(/|$)(.*)
backend:
serviceName: mild-temper-microservice-service
serviceName: internal-code-microservice-service
servicePort: 30201


8 changes: 4 additions & 4 deletions src/main/resources/META-INF/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<style>
body {
color: #ffffff;
background-color: purple;
background-color: orange;
font-family: Arial, sans-serif;
font-size: 14px;
font-size: 27px;
}

h1 {
Expand All @@ -26,8 +26,8 @@
</head>
<body>
<div align="center">
<h1>Welcome to V1 the quarkus web application</h1>
<h2>This application will be deployed on Kubernetes.</h2>
<h1>Welcome Internal Code pplication</h1>
<h2>This application will be deployed on Kubernetes - We rock!.</h2>
</div>
</body>
</html>