48 lines
1 KiB
YAML
48 lines
1 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: web-editor-node
|
|
labels:
|
|
app: web-editor
|
|
spec:
|
|
# if your cluster supports it, uncomment the following to automatically create
|
|
# an external load-balanced IP for the frontend service.
|
|
type: LoadBalancer
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8000
|
|
selector:
|
|
app: web-editor
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: web-editor-node
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: web-editor
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: web-editor
|
|
spec:
|
|
containers:
|
|
- name: web-editor-app
|
|
image: index.docker.io/catarak/p5.js-web-editor:latest
|
|
# temp, just to test kubernetes
|
|
# envFrom:
|
|
# - configMapRef:
|
|
# name: web-editor-env
|
|
envFrom:
|
|
- secretRef:
|
|
name: web-editor-credentials
|
|
imagePullPolicy: Always
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
ports:
|
|
- containerPort: 8000
|
|
|