Note that the user must replace $PROJECT and $REPOSITORY_NAME with their own environment variable names or one can simply go to the Artifact Repository repo and get the name of the Docker image from there
apiVersion:
apps/v1
kind:
Deployment
metadata:
name:
model-deployment
labels:
app:
ml-model-deployment
spec:
replicas:
3
selector:
matchLabels:
app:
ml-model-deployment
template:
metadata:
labels:
app:
ml-model-deployment
spec:
containers:
- name:
basic-tensorflow-model
image:
us-east1-docker.pkg.dev/$PROJECT/$REPOSITORY_NAME/
model-server
ports:
- containerPort:
8501