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