forked from Botanical/BotanJS
39 lines
760 B
YAML
39 lines
760 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: astrojs
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: astrojs
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: astrojs
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: registry-auth
|
|
containers:
|
|
- name: web
|
|
image: registry.k8s.astropenguin.net/astrojs:IMAGE_TAG
|
|
securityContext:
|
|
runAsGroup: 1001
|
|
runAsNonRoot: true
|
|
runAsUser: 1001
|
|
env:
|
|
- name: CLOSURE_ENDPOINT
|
|
value: "http://closure-api.default.svc.cluster.local/compile"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: astrojs
|
|
spec:
|
|
selector:
|
|
app: astrojs
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
name: http
|