-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mauran <thomas.mauran@etu.umontpellier.fr>
- Loading branch information
1 parent
4044504
commit f3c5695
Showing
3 changed files
with
63 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: webapp | ||
name: webapp | ||
namespace: frontend | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: webapp | ||
strategy: {} | ||
template: | ||
metadata: | ||
labels: | ||
app: webapp | ||
spec: | ||
containers: | ||
- image: ghcr.io/do3-2023/thomas-kube-web:latest | ||
name: thomas-kube-frontend | ||
resources: | ||
limits: {} | ||
requests: | ||
memory: 500Mi | ||
cpu: 250m | ||
initContainers: | ||
- name: init-frontend | ||
image: busybox | ||
command: ['sh', '-c', 'until nc -zv backend-service.backend.svc.cluster.local 80; do echo waiting for API; sleep 2; done;'] | ||
status: {} | ||
# apiVersion: apps/v1 | ||
# kind: Deployment | ||
# metadata: | ||
# labels: | ||
# app: webapp | ||
# name: webapp | ||
# namespace: frontend | ||
# spec: | ||
# replicas: 1 | ||
# selector: | ||
# matchLabels: | ||
# app: webapp | ||
# strategy: {} | ||
# template: | ||
# metadata: | ||
# labels: | ||
# app: webapp | ||
# spec: | ||
# containers: | ||
# - image: ghcr.io/do3-2023/thomas-kube-web:latest | ||
# name: thomas-kube-frontend | ||
# resources: | ||
# limits: {} | ||
# requests: | ||
# memory: 500Mi | ||
# cpu: 250m | ||
# initContainers: | ||
# - name: init-frontend | ||
# image: busybox | ||
# command: ['sh', '-c', 'until nc -zv backend-service.backend.svc.cluster.local 80; do echo waiting for API; sleep 2; done;'] | ||
# status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: webapp | ||
namespace: frontend | ||
# apiVersion: v1 | ||
# kind: Service | ||
# metadata: | ||
# name: webapp | ||
# namespace: frontend | ||
|
||
spec: | ||
selector: | ||
app: webapp | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 3000 | ||
nodePort: 30080 | ||
type: NodePort | ||
# spec: | ||
# selector: | ||
# app: webapp | ||
# ports: | ||
# - name: http | ||
# port: 80 | ||
# protocol: TCP | ||
# targetPort: 3000 | ||
# nodePort: 30080 | ||
# type: NodePort |