Compare commits
23 Commits
app/gitea
...
7b59ae37dc
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b59ae37dc | |||
| 2526c08025 | |||
| 23a7dd3fbf | |||
| 088bb0c04a | |||
| d9999a8076 | |||
| 21c57dc6fe | |||
| 36e9c2af90 | |||
| 7fc277efb1 | |||
| 3549352583 | |||
| 0ac50a685b | |||
| efed7d8da5 | |||
| b56e2bbdeb | |||
| 5021171c43 | |||
| 78022c4a42 | |||
| b7504d0ba6 | |||
| b96a3b3211 | |||
| 6cd4f58d80 | |||
| b5548e7e9d | |||
| 32c2ed46be | |||
| 97eda280ac | |||
| d90237b933 | |||
| c073fb7d69 | |||
| 184d7ea4d7 |
62
apps/gitlab/env/k3s-cluster/deployment.yaml
vendored
62
apps/gitlab/env/k3s-cluster/deployment.yaml
vendored
@@ -1,62 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gitlab
|
||||
namespace: gitlab
|
||||
labels:
|
||||
app.kubernetes.io/name: gitlab
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: gitlab
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: gitlab
|
||||
spec:
|
||||
containers:
|
||||
- name: gitlab
|
||||
image: gitlab/gitlab-ce:17.2.1-ce.0
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
env:
|
||||
- name: GITLAB_OMNIBUS_CONFIG
|
||||
value: "external_url 'https://gitlab.cluster.edward.sydney'"
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 443
|
||||
name: https
|
||||
- protocol: TCP
|
||||
containerPort: 80
|
||||
name: http
|
||||
- protocol: TCP
|
||||
containerPort: 22
|
||||
name: ssh
|
||||
volumeMounts:
|
||||
- name: dshm
|
||||
mountPath: /dev/shm
|
||||
- name: gitlab-config
|
||||
mountPath: /etc/config
|
||||
- name: gitlab-log
|
||||
mountPath: /var/log/gitlab
|
||||
- name: gitlab-data
|
||||
mountPath: /var/opt/gitlab
|
||||
volumes:
|
||||
- name: dshm
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
sizeLimit: 1Gi
|
||||
- name: gitlab-config
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/gitlab/config
|
||||
type: Directory
|
||||
- name: gitlab-log
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/gitlab/log
|
||||
type: Directory
|
||||
- name: gitlab-data
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/gitlab/data
|
||||
type: Directory
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
@@ -1,5 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
25
apps/gitlab/env/k3s-cluster/service.yaml
vendored
25
apps/gitlab/env/k3s-cluster/service.yaml
vendored
@@ -1,25 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: gitlab
|
||||
namespace: gitlab
|
||||
labels:
|
||||
app.kubernetes.io/name: gitlab
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: gitlab
|
||||
type: LoadBalancer
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 10080
|
||||
targetPort: 80
|
||||
name: http
|
||||
- protocol: TCP
|
||||
port: 10443
|
||||
targetPort: 443
|
||||
name: https
|
||||
- protocol: TCP
|
||||
port: 10022
|
||||
targetPort: 22
|
||||
name: ssh
|
||||
12
apps/sonarqube/env/k3s-cluster/config.json
vendored
Normal file
12
apps/sonarqube/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"appName": "sonarqube",
|
||||
"userGivenName": "sonarqube",
|
||||
"namespace": "sonarqube",
|
||||
"destNamespace": "sonarqube",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "apps/sonarqube/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
3
apps/sonarqube/env/k3s-cluster/values.yaml
vendored
3
apps/sonarqube/env/k3s-cluster/values.yaml
vendored
@@ -1,4 +1,5 @@
|
||||
priorityClassName: system-cluster-critical
|
||||
podAntiAffinityPreset: ""
|
||||
namespaceOverride: "sonarqube"
|
||||
clusterDomain: sonarqube.cluster.edward.sydney
|
||||
sonarqubeUsername: sonarqube
|
||||
@@ -19,7 +20,7 @@ service:
|
||||
http: 8090
|
||||
elastic: 9091
|
||||
nodePorts:
|
||||
http: 30080
|
||||
http: 30089
|
||||
elastic: 30091
|
||||
ingress:
|
||||
enabled: true
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: couchdb
|
||||
namespace: couchdb
|
||||
labels:
|
||||
app.kubernetes.io/name: couchdb
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: couchdb
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: couchdb
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
containers:
|
||||
- name: couchdb
|
||||
image: bitnami/couchdb:3.3.3
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
env:
|
||||
- name: COUCHDB_PORT_NUMBER
|
||||
value: "7777"
|
||||
- name: COUCHDB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: couchdb-secrets
|
||||
key: password
|
||||
- name: COUCHDB_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: couchdb-secrets
|
||||
key: secrets
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 7777
|
||||
name: couchdb-port
|
||||
volumeMounts:
|
||||
- name: couchdb-data
|
||||
mountPath: /bitnami/couchdb
|
||||
- name: couchdb-config
|
||||
mountPath: /opt/bitnami/couchdb/etc/
|
||||
volumes:
|
||||
- name: couchdb-data
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/couchdb
|
||||
type: Directory
|
||||
- name: couchdb-config
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/couchdb/etc
|
||||
type: Directory
|
||||
@@ -1,21 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: couchdb-ingress
|
||||
namespace: couchdb
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "couchdb.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: couchdb
|
||||
port:
|
||||
number: 7777
|
||||
@@ -1,6 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./service.yaml
|
||||
- ./deployment.yaml
|
||||
- ./ingress.yaml
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: couchdb
|
||||
namespace: couchdb
|
||||
labels:
|
||||
app.kubernetes.io/name: couchdb
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: couchdb
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 7777
|
||||
targetPort: 7777
|
||||
name: couchdb-port
|
||||
@@ -1,23 +0,0 @@
|
||||
---
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
annotations:
|
||||
sealedsecrets.bitnami.com/cluster-wide: "true"
|
||||
creationTimestamp: null
|
||||
name: couchdb-secrets
|
||||
namespace: couchdb
|
||||
spec:
|
||||
encryptedData:
|
||||
password: AgBJ7gxhdpF7pdKjzp/95NYxEqCHGQ/dOiZ2rrjxwXkfm1COqV6D47V8FahZ0g515B3JmQG/fJmylp5bfEN3TcEG5VwMLQPm3p8NvjLWIpDX3W1kf70YxA4Qqr+rlKadHI9wd2pqVOHY5bJDx9ELmSu2k1E9hVxhaEXkwY9BB0GLnYv3jbEbNrC0qq/gPg7QW9gJQd5zRzjo/B3M/ufHjtb/H45zwvMUU4zHx37HTkk5fuu1ucskd39RarDLYm9lWtxM5aEPLR3g/4mCGB+cLmb97lZlFJI4W6utKAq77spDnafyY9se0+ScxIzoS7uDo/+qdEODWrXGrHM10LyaN8AQfoQYlS2IzaJxrWyXtKKsm6LGzU5kUHYpM1qB3KA49HaR1aKLECgYEcgT0fDJhugzYetm6a9o+CW6KoWd7+APQDQJabBO1fmBsCY6xXVXba+Jm+g3Yrz4OLWKmGmC4Sdj33Eb2ZezxuJphqGTKGVcH5bZeDGkE+CErjJYTsh9pERfTG/pOsTkI9e1ao9HeleWgLFhIUdm23+kFuar9PA+R/1sFH1CqINpSb921jaQC7+AnjnRZM5XJ0qEGU0SrEsvBizjlzCPMQmGQGPL5tPu3Bz0aYhiaXM8kDlqwakV9OKggXS3ebwCfc1J1gJmFvk61AS8xArNfTyPK5qXfbG91JJ8QGiMe5cy9HbHg1iqZvWbs6e6qdsHcF966fGo/W6KgJpIz1GH7Jc=
|
||||
secrets: AgA+WJ9+LiXPqT/QlvkVOTNzVXAWOKrpcPS3YGz8eUvox1P1l8yxRw+K2fYD8el5RYK6t191oVMaGBeVq1ort8dvMVkswUwGCu7WwQchW34bIgWjmbEof+9KWXDJhewVlZFOdtWn5BeRlRdCzOmNjEcNmbBTAc1fXkYv9CziW1dWEzkEpuWaVpI9A5okDpk5v8cbbBaNGcLrbuHQPzrI2E3yQUdTo2zdXk/By2ZrfUQh576OTn8GvEiWrZXCSCwplGQW4YYEp+k2yjTs+cSPY8p2MNTcR/csMAuPVs55XpvH9W0CMVsMvE+D24oVd7AczU9E416Ftl1nIGxxoLtvIDOjY54eD4wACWXJZ5K+ok7gAlq4ER7hhTvlJMcCvjN3am5/TZ9tYkcsO6jgkFjTRi3eVDP4pwGwCu1VN327MumjDXwKdupOM1weN8g+QVKsLYcvTQm4DKqweZ5ak/4452rooEzrVH0FNv7x4fjpwHJJpGvYfxo81tuHKOmwU4VjoOEiPck5zByG72oXUr8UHpeYKV911T5H+3vVTPHGoeujZfKCV25j1BXABHAd/6xYMtGPe5owmgwFAN00CeNTfv1AhGPUHQ4H0hSOyYRkBJFWCyMOBJSqGsaQYkfDF0BIUEl0myTPzLy6tEqFrPoc5vCrMkwDejgfmjgnHUNE23CXbIwKQyMW7N8tYNS7qTNWy12foPG/8iXdUaZGxHeL1rEhmCNecL+3qwE=
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
sealedsecrets.bitnami.com/cluster-wide: "true"
|
||||
sealedsecrets.bitnami.com/managed: "true"
|
||||
creationTimestamp: null
|
||||
name: couchdb-secrets
|
||||
namespace: couchdb
|
||||
type: Opaque
|
||||
@@ -27,4 +27,8 @@ spec:
|
||||
- key: kubernetes.io/arch
|
||||
operator: In
|
||||
values:
|
||||
- arm64
|
||||
- arm64
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- linux
|
||||
@@ -27,4 +27,8 @@ spec:
|
||||
- key: kubernetes.io/arch
|
||||
operator: In
|
||||
values:
|
||||
- arm64
|
||||
- arm64
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- linux
|
||||
@@ -24,7 +24,7 @@ spec:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- k3s-cluster-node-2
|
||||
- linux
|
||||
@@ -27,4 +27,8 @@ spec:
|
||||
- key: kubernetes.io/arch
|
||||
operator: In
|
||||
values:
|
||||
- amd64
|
||||
- amd64
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- linux
|
||||
@@ -27,4 +27,8 @@ spec:
|
||||
- key: kubernetes.io/arch
|
||||
operator: In
|
||||
values:
|
||||
- amd64
|
||||
- amd64
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- linux
|
||||
@@ -24,7 +24,7 @@ spec:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- k3s-cluster-node-2
|
||||
- linux
|
||||
@@ -24,7 +24,7 @@ spec:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- k3s-cluster-node-2
|
||||
- linux
|
||||
@@ -24,7 +24,7 @@ spec:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- k3s-cluster-node-2
|
||||
- linux
|
||||
@@ -24,7 +24,7 @@ spec:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- k3s-cluster-node-2
|
||||
- linux
|
||||
@@ -24,7 +24,11 @@ spec:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
- key: kubernetes.io/arch
|
||||
operator: In
|
||||
values:
|
||||
- rpi5-cluster-node-1
|
||||
- arm64
|
||||
- key: kubernetes.io/os
|
||||
operator: In
|
||||
values:
|
||||
- linux
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: code-server
|
||||
spec: {}
|
||||
status: {}
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: consul
|
||||
spec: {}
|
||||
status: {}
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: couchdb
|
||||
spec: {}
|
||||
status: {}
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: dokuwiki
|
||||
spec: {}
|
||||
status: {}
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: gitlab
|
||||
spec: {}
|
||||
status: {}
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: jellyfin
|
||||
spec: {}
|
||||
status: {}
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: obsidian
|
||||
spec: {}
|
||||
status: {}
|
||||
Reference in New Issue
Block a user