add deployment
This commit is contained in:
commit
598a0c2f48
32
deployment.yaml
Normal file
32
deployment.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: playground-deployment
|
||||
labels:
|
||||
app: playground
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: playground
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: playground
|
||||
spec:
|
||||
containers:
|
||||
- name: playground
|
||||
image: wil42/playground:v1
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: playground-service
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: playground
|
||||
ports:
|
||||
- port: 8888
|
||||
targetPort: 8888
|
||||
nodePort: 8888
|
Loading…
Reference in New Issue
Block a user