Skip to content

Instantly share code, notes, and snippets.

@xlight05
Created February 20, 2019 00:06
Show Gist options
  • Save xlight05/73595755d3dae33a1235cea5f192f8fa to your computer and use it in GitHub Desktop.
Save xlight05/73595755d3dae33a1235cea5f192f8fa to your computer and use it in GitHub Desktop.
apiVersion: mesh.cellery.io/v1alpha1
kind: Cell
metadata:
name: employee
annotations: {}
labels: {}
spec:
gatewayTemplate:
spec:
http:
-
backend: employee
context: /employee
definitions:
-
method: GET
path: /details
-
backend: salary
context: payroll
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