45 lines
779 B
YAML
45 lines
779 B
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: explorer
|
||
|
labels:
|
||
|
app: explorer
|
||
|
spec:
|
||
|
ports:
|
||
|
- port: 8001
|
||
|
name: http
|
||
|
protocol: TCP
|
||
|
clusterIP: None
|
||
|
selector:
|
||
|
app: explorer
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: explorer
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: explorer
|
||
|
serviceName: explorer
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: explorer
|
||
|
spec:
|
||
|
terminationGracePeriodSeconds: 1
|
||
|
containers:
|
||
|
- name: explorer
|
||
|
image: explorer
|
||
|
command:
|
||
|
- /usr/local/bin/npm
|
||
|
- run
|
||
|
- build-and-serve
|
||
|
tty: true
|
||
|
ports:
|
||
|
- containerPort: 8001
|
||
|
name: gatsbyserver
|
||
|
protocol: TCP
|