This commit is contained in:
2025-04-22 06:34:33 -05:00
parent 5a8fa58e9b
commit 2097a8dd3a
4 changed files with 75 additions and 0 deletions

View File

@@ -19,3 +19,26 @@ spec:
syncOptions:
- 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

View 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.*.*

View 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

View 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