Skip to content

Instantly share code, notes, and snippets.

@bendangnuksung
Last active May 26, 2020 19:43
Show Gist options
  • Save bendangnuksung/f1482aa9da7100bc3050616aaf503a2c to your computer and use it in GitHub Desktop.
Save bendangnuksung/f1482aa9da7100bc3050616aaf503a2c to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
# App name
name: myresnet-deployment
spec:
# Creating two pods
replicas: 2
template:
metadata:
labels:
app: myresnet-deployment
spec:
containers:
- name: myresnet-deployment
# DockerHub Image
image: bendang/myresnet:latest
ports:
# Opening Port 8501 for REST API
- containerPort: 8501
name: restapi
# Opening Port 8500 for GRPC
- containerPort: 8500
name: grpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment