Skip to content

Commit 6c715d2

Browse files
committed
Improve the k8s yaml used in buildpacks sample
Use a deployment/service instead of just a pod Signed-off-by: David Gageot <[email protected]>
1 parent 448e401 commit 6c715d2

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

integration/examples/buildpacks/k8s/pod.yaml

-8
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: web
5+
spec:
6+
ports:
7+
- port: 8080
8+
name: http
9+
type: LoadBalancer
10+
selector:
11+
app: web
12+
---
13+
apiVersion: apps/v1
14+
kind: Deployment
15+
metadata:
16+
name: web
17+
spec:
18+
selector:
19+
matchLabels:
20+
app: web
21+
template:
22+
metadata:
23+
labels:
24+
app: web
25+
spec:
26+
containers:
27+
- name: web
28+
image: gcr.io/k8s-skaffold/skaffold-buildpacks
29+
ports:
30+
- containerPort: 8080

integration/examples/buildpacks/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: skaffold/v1
22
kind: Config
33
build:
44
artifacts:
5-
- image: gcr.io/k8s-skaffold/skaffold-example
5+
- image: gcr.io/k8s-skaffold/skaffold-buildpacks
66
buildpack:
77
builder: "heroku/buildpacks"

0 commit comments

Comments
 (0)