continue to develop kubernetes setup

This commit is contained in:
Cassie Tarakajian 2018-08-20 12:06:53 -04:00
parent 7f9a435a7f
commit dcb72b9b0b
2 changed files with 30 additions and 16 deletions

View File

@ -29,20 +29,20 @@ services:
links: links:
- app - app
app: app:
build: # build:
context: . # context: .
dockerfile: Dockerfile # dockerfile: Dockerfile
target: production # target: production
args: # args:
- API_URL # - API_URL
- NODE_ENV # - NODE_ENV
- S3_BUCKET # - S3_BUCKET
- AWS_REGION # - AWS_REGION
- S3_BUCKET_URL_BASE # - S3_BUCKET_URL_BASE
- FORCE_TO_HTTPS # - FORCE_TO_HTTPS
# image: index.docker.io/catarak/p5.js-web-editor:latest image: index.docker.io/catarak/p5.js-web-editor:latest
# env_file: env_file:
# - "$PWD/.env" - "$PWD/.env"
environment: environment:
- API_URL - API_URL
- MONGO_URL - MONGO_URL

View File

@ -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 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
@ -7,9 +20,10 @@ metadata:
spec: spec:
# if your cluster supports it, uncomment the following to automatically create # if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service. # an external load-balanced IP for the frontend service.
type: LoadBalancer # type: LoadBalancer
type: NodePort
ports: ports:
- port: 80 - port: 8000
targetPort: 8000 targetPort: 8000
selector: selector:
app: web-editor app: web-editor