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
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: darklight-client-deployment
|
name: darklight-server-deployment
|
||||||
namespace: darklight
|
namespace: darklight
|
||||||
labels:
|
labels:
|
||||||
app: darklight-client
|
app: darklight-server
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: darklight-client
|
app: darklight-server
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: darklight-client
|
app: darklight-server
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: darklight-client
|
- name: darklight-server
|
||||||
image: kasperhermansen/darklight-client
|
image: kasperhermansen/darklight-server
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 8000
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
port: 3000
|
port: 8000
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
port: 3000
|
port: 8000
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: darklight-client
|
name: darklight-server
|
||||||
namespace: darklight
|
namespace: darklight
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
name: http
|
name: http
|
||||||
targetPort: 80
|
targetPort: 8000
|
||||||
selector:
|
selector:
|
||||||
app: darklight-client
|
app: darklight-server
|
||||||
|
Loading…
Reference in New Issue
Block a user