Remove namespace from server
This commit is contained in:
parent
a304d25730
commit
9325619310
@ -1,52 +1,47 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: darklight
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: darklight-client-deployment
|
||||
name: darklight-server-deployment
|
||||
namespace: darklight
|
||||
labels:
|
||||
app: darklight-client
|
||||
app: darklight-server
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: darklight-client
|
||||
app: darklight-server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: darklight-client
|
||||
app: darklight-server
|
||||
spec:
|
||||
containers:
|
||||
- name: darklight-client
|
||||
image: kasperhermansen/darklight-client
|
||||
- name: darklight-server
|
||||
image: kasperhermansen/darklight-server
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
- containerPort: 8000
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
port: 8000
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
port: 8000
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 5
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: darklight-client
|
||||
name: darklight-server
|
||||
namespace: darklight
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
name: http
|
||||
targetPort: 80
|
||||
targetPort: 8000
|
||||
selector:
|
||||
app: darklight-client
|
||||
app: darklight-server
|
||||
|
Loading…
Reference in New Issue
Block a user