Last active
February 16, 2019 09:10
-
-
Save xlight05/7ba775903711d6520b563db55a478e1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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