removed redundant yaml files
removed redundant yaml files
This commit is contained in:
parent
372825d662
commit
8e6c5789ef
|
@ -1,30 +0,0 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: safeshare-frontend
|
||||
labels:
|
||||
app: safeshare
|
||||
tier: frontend
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: safeshare
|
||||
tier: frontend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: safeshare
|
||||
tier: frontend
|
||||
spec:
|
||||
containers:
|
||||
- name: safeshare-frontend
|
||||
image: amusement3004/safeshare-frontend
|
||||
imagePullPolicy: IfNotPresent
|
||||
env: # Add these environment variables
|
||||
- name: REACT_APP_API_HOST
|
||||
value: safeshare-backend-service # The name of the backend service
|
||||
- name: REACT_APP_API_PORT
|
||||
value: "8000" # The port the backend service listens on
|
||||
ports:
|
||||
- containerPort: 3000
|
|
@ -1,15 +0,0 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: safeshare-frontend-service
|
||||
labels:
|
||||
app: safeshare
|
||||
tier: frontend
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 3000
|
||||
nodePort: 32000 # Optional: This is an example. Kubernetes will assign an available port if you don't specify this.
|
||||
selector:
|
||||
app: safeshare
|
||||
tier: frontend
|
Loading…
Reference in New Issue