Add Semaphore Kubernetes configuration files including ConfigMap, PVC, SealedSecret, Service, and Deployment
This commit is contained in:
68
clusters/default/git-ops/semaphore/semaphore.yml
Normal file
68
clusters/default/git-ops/semaphore/semaphore.yml
Normal file
@@ -0,0 +1,68 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: semaphore
|
||||
namespace: git-ops
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: semaphore
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: semaphore
|
||||
spec:
|
||||
initContainers:
|
||||
- name: mysql
|
||||
image: mysql:9.4.0
|
||||
restartPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
env:
|
||||
- name: MYSQL_RANDOM_ROOT_PASSWORD
|
||||
value: "'yes'"
|
||||
- name: MYSQL_DATABASE
|
||||
value: "semaphore"
|
||||
- name: MYSQL_USER
|
||||
value: "semaphore"
|
||||
- name: MYSQL_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: semaphore-secrets
|
||||
key: mysql_password
|
||||
volumeMounts:
|
||||
- name: db
|
||||
mountPath: /var/lib/mysql
|
||||
subPath: db
|
||||
containers:
|
||||
- name: semaphore
|
||||
image: public.ecr.aws/semaphore/pro/server:v2.16.34
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: semaphore-config
|
||||
env:
|
||||
- name: SEMAPHORE_ADMIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: semaphore-secrets
|
||||
key: admin_password
|
||||
- name: SEMAPHORE_DB_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: semaphore-secrets
|
||||
key: mysql_password
|
||||
- name: SEMAPHORE_ACCESS_KEY_ENCRYPTION
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: semaphore-secrets
|
||||
key: key
|
||||
volumes:
|
||||
- name: db
|
||||
persistentVolumeClaim:
|
||||
claimName: semaphore-longhorn
|
||||
Reference in New Issue
Block a user