50
apps/code-server/env/k3s-cluster/deployment.yaml
vendored
50
apps/code-server/env/k3s-cluster/deployment.yaml
vendored
@@ -1,50 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: code-server
|
||||
namespace: code-server
|
||||
labels:
|
||||
app.kubernetes.io/name: code-server
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: code-server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: code-server
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 911
|
||||
runAsGroup: 911
|
||||
containers:
|
||||
- name: code-server
|
||||
image: linuxserver/code-server:4.91.1
|
||||
env:
|
||||
- name: PUID
|
||||
value: "911"
|
||||
- name: PGID
|
||||
value: "911"
|
||||
- name: TZ
|
||||
value: "Australia/Sydney"
|
||||
- name: PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: code-server-secrets
|
||||
key: password
|
||||
- name: SUDO_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: code-server-secrets
|
||||
key: sudo_password
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 8443
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /config
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: code-server-pvc
|
||||
21
apps/code-server/env/k3s-cluster/ingress.yaml
vendored
21
apps/code-server/env/k3s-cluster/ingress.yaml
vendored
@@ -1,21 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: code-server-ingress
|
||||
namespace: code-server
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "code-server.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: code-server
|
||||
port:
|
||||
number: 8443
|
||||
@@ -1,6 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
- ./ingress.yaml
|
||||
17
apps/code-server/env/k3s-cluster/service.yaml
vendored
17
apps/code-server/env/k3s-cluster/service.yaml
vendored
@@ -1,17 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: code-server
|
||||
namespace: code-server
|
||||
labels:
|
||||
app.kubernetes.io/name: code-server
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: code-server
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8443
|
||||
targetPort: 8443
|
||||
name: http
|
||||
28
apps/coder/env/k3s-cluster/Chart.yaml
vendored
Normal file
28
apps/coder/env/k3s-cluster/Chart.yaml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
apiVersion: v2
|
||||
name: coder
|
||||
description: Applications
|
||||
|
||||
# A chart can be either an 'application' or a 'library' chart.
|
||||
#
|
||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
||||
# to be deployed.
|
||||
#
|
||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||
type: application
|
||||
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.1.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
appVersion: "0.0.1"
|
||||
|
||||
dependencies:
|
||||
- name: coder
|
||||
version: 2.13.1
|
||||
repository: https://helm.coder.com/v2
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"appName": "code-server",
|
||||
"userGivenName": "code-server",
|
||||
"namespace": "code-server",
|
||||
"destNamespace": "code-server",
|
||||
"appName": "coder",
|
||||
"userGivenName": "coder",
|
||||
"namespace": "coder",
|
||||
"destNamespace": "coder",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "apps/code-server/env/k3s-cluster",
|
||||
"srcPath": "apps/coder/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
23
apps/coder/env/k3s-cluster/values.yaml
vendored
Normal file
23
apps/coder/env/k3s-cluster/values.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
coder:
|
||||
env:
|
||||
- name: CODER_ACCESS_URL
|
||||
value: "https://coder.cluster.edward.sydney"
|
||||
- name: CODER_PG_CONNECTION_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
# You'll need to create a secret called coder-db-url with your
|
||||
# Postgres connection URL like:
|
||||
# postgres://coder:password@postgres:5432/coder?sslmode=disable
|
||||
name: coder-secrets
|
||||
key: db_url
|
||||
volumes:
|
||||
- name: coder-data
|
||||
persistentVolumeClaim:
|
||||
claimName: coder-pvc
|
||||
volumeMounts:
|
||||
- name: coder-data
|
||||
mountPath: /config
|
||||
ingress:
|
||||
enabled: true
|
||||
className: nginx
|
||||
host: coder.cluster.edward.sydney
|
||||
22
resources/app-secrets/env/k3s-cluster/templates/coder.yaml
vendored
Normal file
22
resources/app-secrets/env/k3s-cluster/templates/coder.yaml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
annotations:
|
||||
sealedsecrets.bitnami.com/cluster-wide: "true"
|
||||
creationTimestamp: null
|
||||
name: coder-secrets
|
||||
namespace: coder
|
||||
spec:
|
||||
encryptedData:
|
||||
db_url: AgBc39/6ozDll42WiugpIT1Hn9Wfp8NP3HG4IyTlhjQHqALuHd0281duh6gN4xnYBjGEMr0dBDwiM9tRvSaI3yVRr/wf7w9btUUSqcq1xr0IaQXbJdwbm/mkAvqN4TCijgbiTYIGokpGTvKhzves/qcUQfn816TlkqURfBy7MAyv6P9fLAjOZsMO5l287UFPh9leNWFkiAs8GCawoeQHt2s0/htO+iyMRwWzS48Gspv39HMWnpJWPHMpmTB3U6fv3MlY0QZFwW5Ijbqz88chu5hsbXuklrZfD4AT/5wzaLlrhfN0MY1CzlNWYGzwS4ojKyfUOBh6Vd9daycR6LxXCdXRNIexVfmZkQJc2hwax9Pt7f23x/JKiFqKGi3P1fuiKBsLK6J5XL07Z9mEDE0oApil3/uLjD8wtCP7R50V/k7OtHAqp21P1+DoJVGHFRD3si2mg0zNXSE2MikCuofd1xNXB5dns00Tps+rWrEvuc4R4TUXYuD3mrBlIP1l2j5fiNh3rrFLe+J2gULclglPJnniCs1ksVYo54RMmZR+dP8GpVMqVYh+Rk93bco58zLgDvVFGu/uajYo+lRfU5NtDg9CONjoVSfvgi0ngOJGOLbeZ2jdOlqvU3Nv+1DT5+q0s49O3cbMERO4kFolGxgi7rnfBmHn716PWwz7xqj1RNeGMAGWyd85B6H8WnyxoEp4HRvLgnB17KOEpAbopzfUIvU9b2YYEKlkML64pLgaaVfPeJWHMP5mSNHSYEiHll2yrP9Y8t15/AHUbptFhpx0i2UMLtMAEWO2o6olRCUlFPS65fFOdOydGDlnxkaim00/VI20RVVZ0g==
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
sealedsecrets.bitnami.com/cluster-wide: "true"
|
||||
sealedsecrets.bitnami.com/managed: "true"
|
||||
creationTimestamp: null
|
||||
name: coder-secrets
|
||||
namespace: coder
|
||||
type: Opaque
|
||||
30
resources/app-volumes/env/k3s-cluster/templates/coder-pv.yaml
vendored
Normal file
30
resources/app-volumes/env/k3s-cluster/templates/coder-pv.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: coder-pv
|
||||
namespace: coder
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
capacity:
|
||||
storage: 8Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
local:
|
||||
path: "/mnt/nfs/AppData/coder"
|
||||
claimRef:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
name: coder-pvc
|
||||
namespace: coder
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/arch
|
||||
operator: In
|
||||
values:
|
||||
- arm64
|
||||
15
resources/app-volumes/env/k3s-cluster/templates/coder-pvc.yaml
vendored
Normal file
15
resources/app-volumes/env/k3s-cluster/templates/coder-pvc.yaml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: coder-pvc
|
||||
namespace: coder
|
||||
labels:
|
||||
name: coder-pvc
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
9
resources/namespaces/base/coder.yaml
Normal file
9
resources/namespaces/base/coder.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: coder
|
||||
spec: {}
|
||||
status: {}
|
||||
@@ -6,6 +6,7 @@ resources:
|
||||
- ./app-volumes.yaml
|
||||
- ./cert-manager.yaml
|
||||
- ./code-server.yaml
|
||||
- ./coder.yaml
|
||||
- ./consul.yaml
|
||||
- ./dokuwiki.yaml
|
||||
- ./gitea.yaml
|
||||
|
||||
Reference in New Issue
Block a user