Skip to content

Instantly share code, notes, and snippets.

@anonymuse
Created September 3, 2018 20:01
Show Gist options
  • Save anonymuse/13b417ff1abd7a49012fb8d260d823ca to your computer and use it in GitHub Desktop.
Save anonymuse/13b417ff1abd7a49012fb8d260d823ca to your computer and use it in GitHub Desktop.
---
##################################################################################################
# Ratings service
##################################################################################################
apiVersion: v1
kind: Service
metadata:
name: ratings
labels:
app: ratings
spec:
ports:
- port: 9080
name: http
---
##################################################################################################
# Reviews service
##################################################################################################
apiVersion: v1
kind: Service
metadata:
name: reviews
labels:
app: reviews
spec:
ports:
- port: 9080
name: http
selector:
app: reviews
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: reviews-v3
spec:
replicas: 1
template:
metadata:
labels:
app: reviews
version: v3
spec:
containers:
- name: reviews
image: istio/examples-bookinfo-reviews-v3:1.5.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment