Skip to content

Instantly share code, notes, and snippets.

@xlight05
Last active February 16, 2019 09:10
Show Gist options
  • Save xlight05/7ba775903711d6520b563db55a478e1e to your computer and use it in GitHub Desktop.
Save xlight05/7ba775903711d6520b563db55a478e1e to your computer and use it in GitHub Desktop.
apiVersion: mesh.cellery.io/v1alpha1
kind: Cell
metadata:
name: employee
annotations: {}
labels: {}
spec:
gatewayTemplate:
spec:
apis:
-
backend: employee
context: /employee
global: true
definitions:
-
method: GET
path: details
-
backend: salary
context: /payroll
global: true
definitions:
-
method: GET
path: salary
servicesTemplates:
-
metadata:
name: employee
annotations: {}
labels:
TEAM: HR
spec:
container:
env:
-
name: PORT
value: '8080'
-
name: BASE_PATH
value: payroll
-
name: SALARY_HOST
value: employee--salary-service
image: docker.io/celleryio/sampleapp-employee
ports:
-
containerPort: 8080
replicas: 1
servicePort: 80
-
metadata:
name: salary
annotations: {}
labels:
OWNER: Alice
TEAM: Finance
spec:
container:
image: docker.io/celleryio/sampleapp-salary
ports:
-
containerPort: 8080
replicas: 1
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment