Skip to content

Commit

Permalink
Add skaffold support
Browse files Browse the repository at this point in the history
  • Loading branch information
matteovivona committed Jul 17, 2020
1 parent 2af65f0 commit 55a7cef
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
22 changes: 22 additions & 0 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dockeralive
labels:
app: dockeralive
spec:
replicas: 1
selector:
matchLabels:
app: dockeralive
template:
metadata:
labels:
app: dockeralive
spec:
containers:
- name: dockeralive
image: tehkapa/dockeralive
resources: {}
ports:
- containerPort: 8080
5 changes: 5 additions & 0 deletions k8s/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml
11 changes: 11 additions & 0 deletions k8s/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: dockeralive
spec:
selector:
app: dockeralive
ports:
- protocol: TCP
port: 80
targetPort: 8080
11 changes: 11 additions & 0 deletions skaffold.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: skaffold/v2beta5
kind: Config
metadata:
name: dockeralive
build:
artifacts:
- image: tehkapa/dockeralive
deploy:
kustomize:
paths:
- k8s

0 comments on commit 55a7cef

Please sign in to comment.