update
This commit is contained in:
@@ -19,3 +19,26 @@ spec:
|
|||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: octopusdeploy-agent
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: infra/octopus-agent
|
||||||
|
destination:
|
||||||
|
namespace: octpus-agent
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
|
|||||||
12
infra/octopus-agent/Chart.yaml
Normal file
12
infra/octopus-agent/Chart.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: octopusdeploy
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.16.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: kubernetes-agent
|
||||||
|
repository: oci://ghcr.io/octopusdeploy
|
||||||
|
version: 2.*.*
|
||||||
23
infra/octopus-agent/templates/secret.yaml
Normal file
23
infra/octopus-agent/templates/secret.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: vault
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: agent-token
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: agent-token
|
||||||
|
data:
|
||||||
|
- secretKey: bearer-token
|
||||||
|
remoteRef:
|
||||||
|
key: kv/octopusdeploy
|
||||||
|
property: infra-bearer-token
|
||||||
|
|
||||||
17
infra/octopus-agent/values.yaml
Normal file
17
infra/octopus-agent/values.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
kubernetes-agent:
|
||||||
|
agent:
|
||||||
|
acceptEula: y
|
||||||
|
serverUrl: https://octopus.durp.info/"
|
||||||
|
serverCommsAddress:
|
||||||
|
- https://octopus.durp.info:10943/
|
||||||
|
space: Default
|
||||||
|
name: Infra
|
||||||
|
deploymentTarget:
|
||||||
|
enabled: true
|
||||||
|
bearerTokenSecretName: agent-token
|
||||||
|
initial:
|
||||||
|
environments:
|
||||||
|
- development
|
||||||
|
- production
|
||||||
|
tags:
|
||||||
|
- infra-cluster
|
||||||
Reference in New Issue
Block a user