Skip to content

Commit

Permalink
Merge pull request #3440 from dgageot/buildpacks-node-sample
Browse files Browse the repository at this point in the history
Buildpacks node sample
  • Loading branch information
balopat authored Jan 6, 2020
2 parents 6296ed4 + 2dc06b2 commit 1068ee1
Show file tree
Hide file tree
Showing 16 changed files with 5,784 additions and 2 deletions.
7 changes: 7 additions & 0 deletions examples/buildpacks-node/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Example: buildpacks (NodeJS)

This is an example demonstrating:

* **building** a simple NodeJS app built with [Cloud Native Buildpacks](https://buildpacks.io/)
* **tagging** using the default tagPolicy (`gitCommit`)
* **deploying** a single container pod using `kubectl`
30 changes: 30 additions & 0 deletions examples/buildpacks-node/k8s/web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: v1
kind: Service
metadata:
name: web
spec:
ports:
- port: 3000
name: http
type: LoadBalancer
selector:
app: web
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
spec:
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: gcr.io/k8s-skaffold/skaffold-buildpacks-node
ports:
- containerPort: 3000
Loading

0 comments on commit 1068ee1

Please sign in to comment.