Skip to content

Commit

Permalink
add kube manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacman99 committed Jun 2, 2023
1 parent a40c111 commit 833e700
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 0 deletions.
96 changes: 96 additions & 0 deletions deploy/marlowe-playground-production.yaml
@@ -0,0 +1,96 @@
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: marlowe-playground
namespace: marlowe-production
spec:
components:
- name: marlowe-playground
properties:
cpu: "0.5"
env:
- name: FRONTEND_URL
value: https://play.marlowe.iohk.io
- name: WEBGHC_URL
value: http://localhost:8080
- name: JWT_SIGNATURE
valueFrom:
secretKeyRef:
key: JWT_SIGNATURE
name: jwt-signature
- name: GITHUB_CLIENT_ID
valueFrom:
secretKeyRef:
key: clientID
name: gh-oauth-production
- name: GITHUB_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: clientSecret
name: gh-oauth-production
- name: GITHUB_CALLBACK_PATH
valueFrom:
secretKeyRef:
key: callbackPath
name: gh-oauth-production
image: ghcr.io/input-output-hk/marlowe-playground-server:2023-05-30-e2d5fd6
imagePullPolicy: Always
memory: 1024Mi
ports:
- expose: true
port: 8080
protocol: TCP
traits:
- properties:
replicas: 1
type: scaler
- properties:
domains:
- play.marlowe.iohk.io
rules:
- path:
type: PathPrefix
value: /api
port: 8080
type: https-route
type: webservice
- name: marlowe-playground-client
properties:
cpu: "0.5"
image: ghcr.io/input-output-hk/marlowe-playground-client:2023-05-30-e2d5fd6
imagePullPolicy: Always
memory: 1024Mi
ports:
- expose: true
port: 8080
protocol: TCP
traits:
- properties:
replicas: 1
type: scaler
- properties:
domains:
- play.marlowe.iohk.io
rules:
- port: 8080
type: https-route
type: webservice
policies:
- name: local-marlowe-production
properties:
allowEmpty: false
clusters:
- local
namespace: marlowe-production
type: topology
workflow:
mode:
steps: DAG
steps:
- meta:
alias: Deploy To local-marlowe-production
name: local-marlowe-production
properties:
policies:
- local-marlowe-production
type: deploy
95 changes: 95 additions & 0 deletions deploy/marlowe-playground-staging.yaml
@@ -0,0 +1,95 @@
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: marlowe-playground
namespace: marlowe-staging
spec:
components:
- name: marlowe-playground
properties:
cpu: "0.5"
env:
- name: FRONTEND_URL
value: https://marlowe-playground.scdev.aws.iohkdev.io
- name: WEBGHC_URL
value: http://localhost:8080
- name: JWT_SIGNATURE
valueFrom:
secretKeyRef:
key: JWT_SIGNATURE
name: jwt-signature
- name: GITHUB_CLIENT_ID
valueFrom:
secretKeyRef:
key: clientID
name: gh-oauth
- name: GITHUB_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: clientSecret
name: gh-oauth
- name: GITHUB_CALLBACK_PATH
valueFrom:
secretKeyRef:
key: callbackPath
name: gh-oauth
image: ghcr.io/input-output-hk/marlowe-playground-server:latest
imagePullPolicy: Always
memory: 1024Mi
ports:
- expose: true
port: 8080
protocol: TCP
traits:
- properties:
replicas: 1
type: scaler
- properties:
domains:
- marlowe-playground.scdev.aws.iohkdev.io
rules:
- path:
type: PathPrefix
value: /api
port: 8080
type: https-route
type: webservice
- name: marlowe-playground-client
properties:
cpu: "0.5"
image: ghcr.io/input-output-hk/marlowe-playground-client:latest
imagePullPolicy: Always
memory: 1024Mi
ports:
- expose: true
port: 8080
protocol: TCP
traits:
- properties:
replicas: 1
type: scaler
- properties:
domains:
- marlowe-playground.scdev.aws.iohkdev.io
rules:
- port: 8080
type: https-route
type: webservice
policies:
- name: local-marlowe-staging
properties:
clusters:
- local
namespace: marlowe-staging
type: topology
workflow:
mode:
steps: DAG
steps:
- meta:
alias: Deploy To local-marlowe-staging
name: local-marlowe-staging
properties:
policies:
- local-marlowe-staging
type: deploy

0 comments on commit 833e700

Please sign in to comment.