Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroenr/ad90ccb1ae8f140739415961dd8c05c8 to your computer and use it in GitHub Desktop.
Save jeroenr/ad90ccb1ae8f140739415961dd8c05c8 to your computer and use it in GitHub Desktop.
Sample Kubernetes service descriptors for Api Gateway
apiVersion: v1
kind: Service
metadata:
labels:
resource: users
name: users-service
spec:
ports:
- port: 80
protocol: TCP
targetPort: 9090
selector:
app: cupenya-microservice
---
apiVersion: v1
kind: Service
metadata:
labels:
resource: dashboards
name: dashboards-service
spec:
ports:
- port: 80
protocol: TCP
targetPort: 9090
selector:
app: cupenya-microservice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment