Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (41 sloc) 632 Bytes
---
# 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
You can’t perform that action at this time.