This commit is contained in:
2023-11-21 05:35:23 -06:00
parent e1c29bdaca
commit 32b1a35799
5 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: octopus-tentacle
namespace: argocd
spec:
project: default
source:
repoURL: https://gitlab.com/developerdurp/homelab.git
targetRevision: main
path: octopus-tentacle
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: octopus-tentacle
syncPolicy:
automated:
prune: true
selfHeal: false
syncOptions:
- CreateNamespace=true

View File

@@ -0,0 +1,7 @@
apiVersion: v2
name: octopus-tentacle
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "0.1.0"

View File

@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: octopus-tentacle
labels:
app: octopus-tentacle
spec:
selector:
matchLabels:
app: octopus-tentacle
replicas: 1
template:
metadata:
labels:
app: octopus-tentacle
spec:
containers:
- name: octopus-tentacle
image: registry.durp.info/octopusdeploy/tentacle:latest
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: true
ports:
- name: http
containerPort: 10933
env:
- name: ACCEPT_EULA
value: "Y"
- name: ListeningPort
value: "10933"
- name: TargetEnvironment
value: "Development"
- name: ServerUrl
value: "https://octopus.internal.durp.info"
- name: TargetRole
value: "k3s"
- name: ServerApiKey
valueFrom:
secretKeyRef:
name: octopus-tentacle-secret
key: key
volumes:
- name: octopus-tentacle-pvc
persistentVolumeClaim:
claimName: octopus-tentacle-pvc

View File

@@ -0,0 +1,15 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: octopus-tentacle-secret
spec:
secretStoreRef:
name: vault
kind: ClusterSecretStore
target:
name: octopus-tentacle-secret
data:
- secretKey: key
remoteRef:
key: secrets/octopus/api
property: key

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: octopus-tentacle
spec:
ports:
- name: http
port: 10933
targetPort: 10933
protocol: TCP
selector:
app: octopus-tentacle