add vscode server
This commit is contained in:
parent
561ed74f6f
commit
8a9c10d635
|
@ -0,0 +1,73 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: code
|
||||
namespace: dev
|
||||
spec:
|
||||
interval: 5m
|
||||
chart:
|
||||
spec:
|
||||
chart: app-template
|
||||
version: 1.3.x
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: bjws-charts
|
||||
namespace: flux-system
|
||||
|
||||
values:
|
||||
# Add init container for pulling znc modules and putting them into the modules directory
|
||||
# initContainers:
|
||||
# pull-module-source:
|
||||
# image: alpine:latest
|
||||
# command:
|
||||
# - "sh"
|
||||
# - "-c"
|
||||
# - "sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list &&"
|
||||
# volumeMounts:
|
||||
# - mountPath: /znc-data
|
||||
# name: config
|
||||
|
||||
image:
|
||||
repository: codercom/code-server
|
||||
tag: latest
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
http:
|
||||
port: 8080
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
enabled: false
|
||||
|
||||
ingress:
|
||||
main:
|
||||
enabled: true
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
|
||||
hosts:
|
||||
- host: &host "code.${SECRET_NEW_DOMAIN}"
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- *host
|
||||
secretName: wildcard-main-tls
|
||||
|
||||
# persistence:
|
||||
# config:
|
||||
# enabled: true
|
||||
# type: hostPath
|
||||
# hostPath: /mnt/MainPool/Kubernetes/znc
|
||||
# mountPath: /znc-data
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1m
|
||||
memory: 4Mi
|
||||
# limits:
|
||||
# memory: 200Mi
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helm-release.yaml
|
|
@ -0,0 +1,5 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./namespace.yaml
|
||||
- ./code
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: dev
|
||||
labels:
|
||||
name: dev
|
|
@ -10,5 +10,6 @@ resources:
|
|||
- ./irc
|
||||
- ./monitoring
|
||||
- ./default
|
||||
- ./game-servers
|
||||
#- ./game-servers
|
||||
- ./code
|
||||
#- ./harbor
|
Loading…
Reference in New Issue