Add demo namespace, ClusterIP service and automated deployment

test
Stefan Prodan 2018-11-16 15:17:34 +02:00
parent dda5695007
commit 5583ccf287
4 changed files with 82 additions and 1 deletions

View File

@ -5,7 +5,7 @@ here](https://github.com/weaveworks/flux/blob/master/site/helm-get-started.md).
## <a name="help"></a>Getting Help
If you have any questions about, feedback for or problems with `flux-helm-test`:
If you have any questions about, feedback for or problems with `flux-get-started`:
- Invite yourself to the <a href="https://slack.weave.works/" target="_blank">Weave community</a> slack.
- Ask a question on the [#flux](https://weave-community.slack.com/messages/flux/) slack channel.

6
namespaces/demo.yaml Normal file
View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
name: demo
name: demo

View File

@ -0,0 +1,59 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: podinfo
namespace: demo
labels:
app: podinfo
annotations:
flux.weave.works/automated: "true"
flux.weave.works/tag.podinfod: semver:~1.3
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 0
type: RollingUpdate
selector:
matchLabels:
app: podinfo
template:
metadata:
annotations:
prometheus.io/scrape: "true"
labels:
app: podinfo
spec:
containers:
- name: podinfod
image: stefanprodan/podinfo:1.3.2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9898
name: http
protocol: TCP
command:
- ./podinfo
- --port=9898
- --level=info
- --random-delay=false
- --random-error=false
env:
- name: PODINFO_UI_COLOR
value: green
livenessProbe:
httpGet:
path: /healthz
port: 9898
readinessProbe:
httpGet:
path: /readyz
port: 9898
resources:
limits:
cpu: 1000m
memory: 128Mi
requests:
cpu: 10m
memory: 64Mi

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: podinfo
namespace: demo
labels:
app: podinfo
spec:
type: ClusterIP
selector:
app: podinfo
ports:
- name: http
port: 9898
protocol: TCP
targetPort: http