Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
---
# petstore-v2
apiVersion: v1
kind: Service
metadata:
name: petstore-v2
namespace: default
labels:
app: petstore-v2
spec:
type: ClusterIP
ports:
- name: http
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: petstore-v2
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: petstore-v2
namespace: default
labels:
app: petstore-v2
spec:
replicas: 1
selector:
matchLabels:
app: petstore-v2
template:
metadata:
labels:
app: petstore-v2
spec:
containers:
- name: petstore-v2
image: scottcranton/petstore:v2
ports:
- containerPort: 8080