Skip to content

Commit 5583ccf

Browse files
committed
Add demo namespace, ClusterIP service and automated deployment
1 parent dda5695 commit 5583ccf

File tree

4 files changed

+82
-1
lines changed

4 files changed

+82
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ here](https://github.com/weaveworks/flux/blob/master/site/helm-get-started.md).
55

66
## <a name="help"></a>Getting Help
77

8-
If you have any questions about, feedback for or problems with `flux-helm-test`:
8+
If you have any questions about, feedback for or problems with `flux-get-started`:
99

1010
- Invite yourself to the <a href="https://slack.weave.works/" target="_blank">Weave community</a> slack.
1111
- Ask a question on the [#flux](https://weave-community.slack.com/messages/flux/) slack channel.

namespaces/demo.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
labels:
5+
name: demo
6+
name: demo

workloads/podinfo-dep.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: podinfo
6+
namespace: demo
7+
labels:
8+
app: podinfo
9+
annotations:
10+
flux.weave.works/automated: "true"
11+
flux.weave.works/tag.podinfod: semver:~1.3
12+
spec:
13+
replicas: 1
14+
strategy:
15+
rollingUpdate:
16+
maxUnavailable: 0
17+
type: RollingUpdate
18+
selector:
19+
matchLabels:
20+
app: podinfo
21+
template:
22+
metadata:
23+
annotations:
24+
prometheus.io/scrape: "true"
25+
labels:
26+
app: podinfo
27+
spec:
28+
containers:
29+
- name: podinfod
30+
image: stefanprodan/podinfo:1.3.2
31+
imagePullPolicy: IfNotPresent
32+
ports:
33+
- containerPort: 9898
34+
name: http
35+
protocol: TCP
36+
command:
37+
- ./podinfo
38+
- --port=9898
39+
- --level=info
40+
- --random-delay=false
41+
- --random-error=false
42+
env:
43+
- name: PODINFO_UI_COLOR
44+
value: green
45+
livenessProbe:
46+
httpGet:
47+
path: /healthz
48+
port: 9898
49+
readinessProbe:
50+
httpGet:
51+
path: /readyz
52+
port: 9898
53+
resources:
54+
limits:
55+
cpu: 1000m
56+
memory: 128Mi
57+
requests:
58+
cpu: 10m
59+
memory: 64Mi

workloads/podinfo-svc.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: podinfo
5+
namespace: demo
6+
labels:
7+
app: podinfo
8+
spec:
9+
type: ClusterIP
10+
selector:
11+
app: podinfo
12+
ports:
13+
- name: http
14+
port: 9898
15+
protocol: TCP
16+
targetPort: http

0 commit comments

Comments
 (0)