diff --git a/apps/test.yaml b/apps/test.yaml new file mode 100644 index 0000000..4182a79 --- /dev/null +++ b/apps/test.yaml @@ -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 \ No newline at end of file diff --git a/helm/test/Chart.yaml b/helm/test/Chart.yaml new file mode 100644 index 0000000..13544dc --- /dev/null +++ b/helm/test/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +name: test +version: 0.1.0 diff --git a/helm/test/templates/pod.yaml b/helm/test/templates/pod.yaml new file mode 100644 index 0000000..5d40eaa --- /dev/null +++ b/helm/test/templates/pod.yaml @@ -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 \ No newline at end of file diff --git a/helm/test/templates/service.yaml b/helm/test/templates/service.yaml new file mode 100644 index 0000000..2e8535a --- /dev/null +++ b/helm/test/templates/service.yaml @@ -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 diff --git a/helm/test/templates/virtualservice.yaml b/helm/test/templates/virtualservice.yaml new file mode 100644 index 0000000..867ff86 --- /dev/null +++ b/helm/test/templates/virtualservice.yaml @@ -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 \ No newline at end of file diff --git a/helm/test/templates/webpage-cm.yaml b/helm/test/templates/webpage-cm.yaml new file mode 100644 index 0000000..4d29e6f --- /dev/null +++ b/helm/test/templates/webpage-cm.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-cm + namespace: test +data: + index.html: | + + + hello there + + +

Test Page

+

Lorem ipsum, dolor sit amet.

+ + \ No newline at end of file diff --git a/helm/test/values.yaml b/helm/test/values.yaml new file mode 100644 index 0000000..e69de29