23 Commits

Author SHA1 Message Date
7b59ae37dc Merge pull request #679 from 3dwardch3ng/misc
re-add apps for PV fixes
2024-07-26 01:51:08 +10:00
2526c08025 re-add apps for PV fixes 2024-07-26 01:50:48 +10:00
23a7dd3fbf Merge pull request #678 from 3dwardch3ng/misc
re-add apps for PV fixes
2024-07-26 01:44:57 +10:00
088bb0c04a re-add apps for PV fixes 2024-07-26 01:44:42 +10:00
d9999a8076 Merge pull request #677 from 3dwardch3ng/misc
temp remove apps for PV fixes
2024-07-26 01:41:36 +10:00
21c57dc6fe temp remove apps for PV fixes 2024-07-26 01:41:13 +10:00
36e9c2af90 fix PVs 2024-07-26 01:32:49 +10:00
7fc277efb1 Merge pull request #676 from 3dwardch3ng/misc
fix PVs
2024-07-26 01:25:41 +10:00
3549352583 fix PVs 2024-07-26 01:25:18 +10:00
0ac50a685b Merge pull request #675 from 3dwardch3ng/misc
fix PVs
2024-07-26 01:09:46 +10:00
efed7d8da5 fix PVs 2024-07-26 01:09:26 +10:00
b56e2bbdeb Merge pull request #674 from 3dwardch3ng/misc
fix PVs
2024-07-26 01:05:59 +10:00
5021171c43 fix PVs 2024-07-26 01:05:42 +10:00
78022c4a42 Merge pull request #673 from 3dwardch3ng/misc
remove redundant artifact
2024-07-26 01:01:03 +10:00
b7504d0ba6 remove redundant artifact 2024-07-26 01:00:45 +10:00
b96a3b3211 Merge pull request #672 from 3dwardch3ng/app/sonarqube
update node ports for sonarqube
2024-07-26 00:57:55 +10:00
6cd4f58d80 update node ports for sonarqube 2024-07-26 00:57:37 +10:00
b5548e7e9d Merge pull request #671 from 3dwardch3ng/misc
clean update namespaces
2024-07-26 00:54:24 +10:00
32c2ed46be clean update namespaces 2024-07-26 00:54:07 +10:00
97eda280ac Merge pull request #670 from 3dwardch3ng/app/sonarqube
App/sonarqube
2024-07-26 00:50:13 +10:00
d90237b933 update node affinity for PVs 2024-07-26 00:49:08 +10:00
c073fb7d69 enable sonarqube 2024-07-26 00:46:33 +10:00
184d7ea4d7 Merge pull request #669 from 3dwardch3ng/app/gitea
enable gitea
2024-07-25 23:29:40 +10:00
27 changed files with 50 additions and 294 deletions

View File

@@ -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

View File

@@ -1,5 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./deployment.yaml
- ./service.yaml

View File

@@ -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

View 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
}

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,6 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./service.yaml
- ./deployment.yaml
- ./ingress.yaml

View File

@@ -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

View File

@@ -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

View File

@@ -28,3 +28,7 @@ spec:
operator: In
values:
- arm64
- key: kubernetes.io/os
operator: In
values:
- linux

View File

@@ -28,3 +28,7 @@ spec:
operator: In
values:
- arm64
- key: kubernetes.io/os
operator: In
values:
- linux

View File

@@ -24,7 +24,7 @@ spec:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
- key: kubernetes.io/os
operator: In
values:
- k3s-cluster-node-2
- linux

View File

@@ -28,3 +28,7 @@ spec:
operator: In
values:
- amd64
- key: kubernetes.io/os
operator: In
values:
- linux

View File

@@ -28,3 +28,7 @@ spec:
operator: In
values:
- amd64
- key: kubernetes.io/os
operator: In
values:
- linux

View File

@@ -24,7 +24,7 @@ spec:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
- key: kubernetes.io/os
operator: In
values:
- k3s-cluster-node-2
- linux

View File

@@ -24,7 +24,7 @@ spec:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
- key: kubernetes.io/os
operator: In
values:
- k3s-cluster-node-2
- linux

View File

@@ -24,7 +24,7 @@ spec:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
- key: kubernetes.io/os
operator: In
values:
- k3s-cluster-node-2
- linux

View File

@@ -24,7 +24,7 @@ spec:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
- key: kubernetes.io/os
operator: In
values:
- k3s-cluster-node-2
- linux

View File

@@ -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

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: code-server
spec: {}
status: {}

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: consul
spec: {}
status: {}

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: couchdb
spec: {}
status: {}

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: dokuwiki
spec: {}
status: {}

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: gitlab
spec: {}
status: {}

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: jellyfin
spec: {}
status: {}

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: obsidian
spec: {}
status: {}