Created
June 5, 2020 21:51
-
-
Save knrt10/cf18e1a95abb20fc4a08fe5c57036ca3 to your computer and use it in GitHub Desktop.
grpc-cache deployment file
This file contains hidden or 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: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: grpc-cache | |
| namespace: grpc-cache | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| name: grpc-cache | |
| template: | |
| metadata: | |
| labels: | |
| name: grpc-cache | |
| namespace: grpc-cache | |
| spec: | |
| containers: | |
| - name: grpc-cache | |
| image: knrt10/grpc-cache | |
| ports: | |
| - containerPort: 5001 | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: grpc-cache | |
| namespace: grpc-cache | |
| spec: | |
| type: LoadBalancer | |
| selector: | |
| name: grpc-cache | |
| ports: | |
| - name: grpc | |
| port: 5001 | |
| targetPort: 5001 | |
| --- | |
| apiVersion: networking.k8s.io/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: grpc-cache | |
| namespace: grpc-cache | |
| spec: | |
| rules: | |
| - host: grpc-cache.example.com | |
| http: | |
| paths: | |
| - path: / | |
| backend: | |
| serviceName: grpc-cache | |
| servicePort: 5001 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment