test
This commit is contained in:
parent
ed8f450b53
commit
4624f52121
20
apps/test.yaml
Normal file
20
apps/test.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: demo
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitea.linvogel.ch/linus/gitops.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: helm/test
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- values.yaml
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: test
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
3
helm/test/Chart.yaml
Normal file
3
helm/test/Chart.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: test
|
||||||
|
version: 0.1.0
|
||||||
20
helm/test/templates/pod.yaml
Normal file
20
helm/test/templates/pod.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: test
|
||||||
|
namespace: test
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: test
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx:1.14.2
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: webpage
|
||||||
|
mountPath: /usr/share/nginx/html
|
||||||
|
volumes:
|
||||||
|
- name: webpage
|
||||||
|
configMap:
|
||||||
|
name: test-cm
|
||||||
13
helm/test/templates/service.yaml
Normal file
13
helm/test/templates/service.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: test
|
||||||
|
namespace: test
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: test
|
||||||
17
helm/test/templates/virtualservice.yaml
Normal file
17
helm/test/templates/virtualservice.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: networking.istio.io/v1
|
||||||
|
kind: VirtualService
|
||||||
|
metadata:
|
||||||
|
name: test
|
||||||
|
namespace: test
|
||||||
|
spec:
|
||||||
|
hosts:
|
||||||
|
- "blah.apps.linvogel.internal"
|
||||||
|
gateways:
|
||||||
|
- istio-ingress/istio-gateway
|
||||||
|
http:
|
||||||
|
- name: "test-route"
|
||||||
|
route:
|
||||||
|
- destination:
|
||||||
|
host: test.test.svc.cluster.local
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
16
helm/test/templates/webpage-cm.yaml
Normal file
16
helm/test/templates/webpage-cm.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: test-cm
|
||||||
|
namespace: test
|
||||||
|
data:
|
||||||
|
index.html: |
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>hello there</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Test Page</h1>
|
||||||
|
<p>Lorem ipsum, dolor sit amet.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
0
helm/test/values.yaml
Normal file
0
helm/test/values.yaml
Normal file
Loading…
x
Reference in New Issue
Block a user