init
This commit is contained in:
6
draft/apps/examples/README.md
Normal file
6
draft/apps/examples/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# demo-app
|
||||
### Installation:
|
||||
To install this application using the `argocd-autopilot`, assuming you already have gone through the [bootstrap process](https://argocd-autopilot.readthedocs.io/en/latest/Getting-Started/), run the following:
|
||||
```bash
|
||||
argocd-autopilot app create hello-world --app github.com/Mathod95/courses/courses_002/apps/examples -p production
|
||||
```
|
||||
19
draft/apps/examples/deployment.yaml
Normal file
19
draft/apps/examples/deployment.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: simple-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: trivial-go-web-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: trivial-go-web-app
|
||||
spec:
|
||||
containers:
|
||||
- name: webserver-simple
|
||||
image: docker.io/kostiscodefresh/simple-web-app:3d9b390
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
5
draft/apps/examples/kustomization.yaml
Normal file
5
draft/apps/examples/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
11
draft/apps/examples/service.yaml
Normal file
11
draft/apps/examples/service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: simple-service
|
||||
spec:
|
||||
selector:
|
||||
app: trivial-go-web-app
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
6
draft/apps/uptimekuma/README.md
Normal file
6
draft/apps/uptimekuma/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# demo-app
|
||||
### Installation:
|
||||
To install this application using the `argocd-autopilot`, assuming you already have gone through the [bootstrap process](https://argocd-autopilot.readthedocs.io/en/latest/Getting-Started/), run the following:
|
||||
```bash
|
||||
argocd-autopilot app create uptimekuma --app github.com/Mathod95/courses/courses_002/apps/uptimekuma -p production
|
||||
```
|
||||
26
draft/apps/uptimekuma/deployment.yaml
Normal file
26
draft/apps/uptimekuma/deployment.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: uptime-kuma
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: uptime-kuma
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: uptime-kuma
|
||||
spec:
|
||||
containers:
|
||||
- name: uptime-kuma
|
||||
image: louislam/uptime-kuma:latest
|
||||
ports:
|
||||
- containerPort: 3001
|
||||
volumeMounts:
|
||||
- mountPath: /app/data
|
||||
name: uptime-kuma-data
|
||||
volumes:
|
||||
- name: uptime-kuma-data
|
||||
persistentVolumeClaim:
|
||||
claimName: uptime-kuma-pvc
|
||||
7
draft/apps/uptimekuma/kustomization.yaml
Normal file
7
draft/apps/uptimekuma/kustomization.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
- ./persistent_volume.yaml
|
||||
- ./persistent_volume_claim.yaml
|
||||
11
draft/apps/uptimekuma/persistent_volume.yaml
Normal file
11
draft/apps/uptimekuma/persistent_volume.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: uptime-kuma-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
hostPath:
|
||||
path: /mnt/data/uptime-kuma
|
||||
10
draft/apps/uptimekuma/persistent_volume_claim.yaml
Normal file
10
draft/apps/uptimekuma/persistent_volume_claim.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: uptime-kuma-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
11
draft/apps/uptimekuma/service.yaml
Normal file
11
draft/apps/uptimekuma/service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: uptime-kuma
|
||||
spec:
|
||||
selector:
|
||||
app: uptime-kuma
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 3001
|
||||
Reference in New Issue
Block a user