@@ -1,27 +0,0 @@
|
||||
# Apps
|
||||
This directory contains all of the applications you installed by using:
|
||||
```bash
|
||||
argocd-autopilot app create <APP_NAME> --app <APP_SPECIFIER> -p <PROJECT_NAME>
|
||||
```
|
||||
|
||||
## Application Types
|
||||
> If you don't specify the application `--type` argocd-autopilot will try to clone the source repository and infer the application type [automatically](https://argoproj.github.io/argo-cd/user-guide/tool_detection/#tool-detection)
|
||||
|
||||
* ### Directory application
|
||||
Such an application references a specific directory at a given repo URL, path and revision. It will be persisted in the GitOps Repository as a single file at `apps/<APP_NAME>/<PROJECT_NAME>/config.json`.
|
||||
#### Example:
|
||||
```bash
|
||||
argocd-autopilot app create dir-example --app github.com/argoproj-labs/argocd-autopilot/examples/demo-dir/ -p <PROJECT_NAME> --type dir
|
||||
```
|
||||
|
||||
* ### Kustomize application
|
||||
A Kustomize application will have <u>exactly one</u>: `apps/<APP_NAME>/base/kustomization.yaml` file, and one or more `apps/<APP_NAME>/overlays/<PROJECT_NAME>/` folders.
|
||||
|
||||
The `apps/<APP_NAME>/base/kustomization.yaml` file is created the first time you create the application. The `apps/<APP_NAME>/overlays/<PROJECT_NAME>/` folder is created for each project you install this application on. So all overlays of the same application are using the same base `kustomization.yaml`.
|
||||
#### Example:
|
||||
Try running the following command:
|
||||
```bash
|
||||
argocd-autopilot app create hello-world --app github.com/argoproj-labs/argocd-autopilot/examples/demo-app/ -p <PROJECT_NAME> --type kustomize
|
||||
```
|
||||
|
||||
###### * If you did not create a project yet take a look at: [creating a project](https://argocd-autopilot.readthedocs.io/en/stable/Getting-Started/#add-a-project-and-an-application).
|
||||
@@ -1,49 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "0"
|
||||
creationTimestamp: null
|
||||
name: cluster-resources
|
||||
namespace: argocd
|
||||
spec:
|
||||
generators:
|
||||
- git:
|
||||
files:
|
||||
- path: bootstrap/cluster-resources/*.json
|
||||
repoURL: https://github.com/3dwardch3ng/home-cluster-ops.git
|
||||
requeueAfterSeconds: 20
|
||||
revision: ""
|
||||
template:
|
||||
metadata: {}
|
||||
spec:
|
||||
destination: {}
|
||||
project: ""
|
||||
source:
|
||||
repoURL: ""
|
||||
syncPolicy:
|
||||
preserveResourcesOnDeletion: true
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/managed-by: argocd-autopilot
|
||||
app.kubernetes.io/name: cluster-resources-{{name}}
|
||||
name: cluster-resources-{{name}}
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
server: '{{server}}'
|
||||
ignoreDifferences:
|
||||
- group: argoproj.io
|
||||
jsonPointers:
|
||||
- /status
|
||||
kind: Application
|
||||
project: default
|
||||
source:
|
||||
path: bootstrap/cluster-resources/{{name}}
|
||||
repoURL: https://github.com/3dwardch3ng/home-cluster-ops.git
|
||||
syncPolicy:
|
||||
automated:
|
||||
allowEmpty: true
|
||||
selfHeal: true
|
||||
status: {}
|
||||
@@ -1 +0,0 @@
|
||||
{"name":"in-cluster","server":"https://kubernetes.default.svc"}
|
||||
@@ -1,3 +0,0 @@
|
||||
# Cluster Resources
|
||||
This directory contains all cluster resources that should be applied to cluster: `in-cluster`.
|
||||
For example `Namespace` resources that are shared by multiple applications on the same namespace.
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: argocd
|
||||
spec: {}
|
||||
status: {}
|
||||
@@ -1,10 +1,6 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
annotations:
|
||||
argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc
|
||||
argocd.argoproj.io/sync-options: PruneLast=true
|
||||
argocd.argoproj.io/sync-wave: "-2"
|
||||
creationTimestamp: null
|
||||
name: k3s-cluster
|
||||
namespace: argocd
|
||||
@@ -68,7 +64,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/managed-by: argocd-autopilot
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
app.kubernetes.io/name: '{{ appName }}'
|
||||
name: k3s-cluster-{{ userGivenName }}
|
||||
namespace: argocd
|
||||
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
labels:
|
||||
app.kubernetes.io/managed-by: argocd-autopilot
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
app.kubernetes.io/name: root
|
||||
name: root
|
||||
namespace: argocd
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# get the latest version or change to a specific version
|
||||
VERSION=$(curl --silent "https://api.github.com/repos/argoproj-labs/argocd-autopilot/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||
|
||||
# download and extract the binary
|
||||
curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/"$VERSION"/argocd-autopilot-linux-arm64.tar.gz | tar zx
|
||||
|
||||
# move the binary to your $PATH
|
||||
mv ./argocd-autopilot-* /usr/local/bin/argocd-autopilot
|
||||
|
||||
# check the installation
|
||||
argocd-autopilot version
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
argocd-autopilot repo bootstrap --app https://github.com/argoproj-labs/argocd-autopilot/manifests/ha
|
||||
Reference in New Issue
Block a user