mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-23 22:26:29 +00:00
Merge pull request #1 from errordeveloper/master
Add Skaffold config files
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
docs
|
||||
deploy
|
||||
charts
|
||||
cloudbuild.yaml
|
||||
skaffold.yaml
|
||||
.gitignore
|
||||
.travis.yml
|
||||
LICENSE
|
||||
README.md
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: podinfo
|
||||
labels:
|
||||
app: podinfo
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: podinfo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: podinfo
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
spec:
|
||||
containers:
|
||||
- name: podinfod
|
||||
image: podinfo
|
||||
command:
|
||||
- ./podinfo
|
||||
- -port=9898
|
||||
- -debug=true
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 9898
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: 9898
|
||||
initialDelaySeconds: 1
|
||||
periodSeconds: 5
|
||||
failureThreshold: 1
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 9898
|
||||
initialDelaySeconds: 1
|
||||
periodSeconds: 10
|
||||
failureThreshold: 2
|
||||
resources:
|
||||
requests:
|
||||
memory: "32Mi"
|
||||
cpu: "10m"
|
||||
@@ -0,0 +1,27 @@
|
||||
apiVersion: skaffold/v1alpha2
|
||||
kind: Config
|
||||
|
||||
build:
|
||||
|
||||
artifacts:
|
||||
- imageName: podinfo
|
||||
docker:
|
||||
dockerfilePath: ./Dockerfile.ci
|
||||
|
||||
deploy:
|
||||
|
||||
kubectl: { manifests: [ deploy/skaffold/* ] }
|
||||
|
||||
profiles:
|
||||
|
||||
- name: production
|
||||
|
||||
build:
|
||||
|
||||
local: { skipPush: false }
|
||||
artifacts:
|
||||
- imageName: podinfo
|
||||
docker:
|
||||
dockerfilePath: ./Dockerfile.ci
|
||||
|
||||
deploy: {}
|
||||
Reference in New Issue
Block a user