continue to develop kubernetes setup
This commit is contained in:
parent
7f9a435a7f
commit
dcb72b9b0b
2 changed files with 30 additions and 16 deletions
|
@ -29,20 +29,20 @@ services:
|
|||
links:
|
||||
- app
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: production
|
||||
args:
|
||||
- API_URL
|
||||
- NODE_ENV
|
||||
- S3_BUCKET
|
||||
- AWS_REGION
|
||||
- S3_BUCKET_URL_BASE
|
||||
- FORCE_TO_HTTPS
|
||||
# image: index.docker.io/catarak/p5.js-web-editor:latest
|
||||
# env_file:
|
||||
# - "$PWD/.env"
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: Dockerfile
|
||||
# target: production
|
||||
# args:
|
||||
# - API_URL
|
||||
# - NODE_ENV
|
||||
# - S3_BUCKET
|
||||
# - AWS_REGION
|
||||
# - S3_BUCKET_URL_BASE
|
||||
# - FORCE_TO_HTTPS
|
||||
image: index.docker.io/catarak/p5.js-web-editor:latest
|
||||
env_file:
|
||||
- "$PWD/.env"
|
||||
environment:
|
||||
- API_URL
|
||||
- MONGO_URL
|
||||
|
|
|
@ -1,3 +1,16 @@
|
|||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: editor-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.global-static-ip-name: "test-web-editor"
|
||||
spec:
|
||||
tls:
|
||||
- secretName: sslcerts
|
||||
backend:
|
||||
serviceName: web-editor-node
|
||||
servicePort: 8000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
|
@ -7,9 +20,10 @@ metadata:
|
|||
spec:
|
||||
# if your cluster supports it, uncomment the following to automatically create
|
||||
# an external load-balanced IP for the frontend service.
|
||||
type: LoadBalancer
|
||||
# type: LoadBalancer
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 80
|
||||
- port: 8000
|
||||
targetPort: 8000
|
||||
selector:
|
||||
app: web-editor
|
||||
|
|
Loading…
Reference in a new issue