37 lines
575 B
YAML
37 lines
575 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ci4s-file-deployment
|
|
namespace: ci4s-test
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ci4s-file
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ci4s-file
|
|
spec:
|
|
containers:
|
|
- name: ci4s-file
|
|
image: ci4s-file:v1.0
|
|
ports:
|
|
- containerPort: 9300
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ci4s-file-service
|
|
namespace: ci4s-test
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
- port: 9300
|
|
nodePort: 31209
|
|
protocol: TCP
|
|
selector:
|
|
app: ci4s-file
|
|
|