Files
zeekay c1360a5a23 feat: rebrand Casibase to Hanzo Cloud across entire codebase
Replace all user-visible Casibase references with Hanzo Cloud branding:
- UI: logos, About page, SystemInfo, help links, demo URLs
- Backend: email templates, OpenRouter config, transaction categories,
  swagger API docs, K8s namespaces/labels/templates
- Infra: docker-compose service name, CI workflow, CDN defaults
- Preserved: session cookies, DB keys, Prometheus metric names,
  DryRunPrefix protocol (would break existing data/sessions)
2026-02-09 15:09:31 -08:00

142 lines
3.5 KiB
YAML

apiVersion: app.cloud.hanzo.ai/v1
kind: Template
metadata:
name: code-server
spec:
displayName: 'code-server'
description: 'VS Code in the browser'
icon: 'https://raw.githubusercontent.com/coder/code-server/main/src/browser/media/favicon.svg'
readme: 'https://raw.githubusercontent.com/coder/code-server/main/docs/README.md'
options:
- parameter: PASSWORD
description: 'Access Password'
type: string
default: 'a123456'
required: true
- parameter: timeZone
description: 'Time Zone'
type: string
default: 'Asia/Shanghai'
required: true
- parameter: host
description: 'Domain name for accessing code-server'
type: string
default: ''
required: true
- parameter: tlsSecretName
description: 'TLS secret name in Kubernetes secret for https'
type: string
default: ''
required: false
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ .application.name }}
annotations:
originImageName: codercom/code-server:4.90.3-39
hanzo-cloud/minReplicas: '1'
hanzo-cloud/maxReplicas: '1'
labels:
hanzo-cloud/app-deploy-manager: {{ .application.name }}
app: {{ .application.name }}
spec:
replicas: 1
revisionHistoryLimit: 1
minReadySeconds: 10
serviceName: {{ .application.name }}
selector:
matchLabels:
app: {{ .application.name }}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
template:
metadata:
labels:
app: {{ .application.name }}
spec:
automountServiceAccountToken: false
containers:
- name: {{ .application.name }}
image: codercom/code-server:4.90.3-39
env:
- name: TZ
value: {{ .options.timeZone }}
- name: PASSWORD
value: {{ .options.PASSWORD }}
resources:
requests:
cpu: 200m
memory: 200Mi
limits:
cpu: 2000m
memory: 2Gi
command:
- /bin/sh
- '-c'
args:
- |
mkdir -p /home/coder/workspace && /usr/bin/entrypoint.sh --bind-addr 0.0.0.0:8080 /home/coder/workspace
ports:
- containerPort: 8080
imagePullPolicy: IfNotPresent
volumeMounts:
- name: vn-homevn-coder
mountPath: /home/coder
volumes: []
securityContext:
fsGroup: 1000
volumeClaimTemplates:
- metadata:
annotations:
path: /home/coder
value: '1'
name: vn-homevn-coder
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: {{ .application.name }}
labels:
hanzo-cloud/app-deploy-manager: {{ .application.name }}
spec:
ports:
- port: 8080
selector:
app: {{ .application.name }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .application.name }}
labels:
hanzo-cloud/app-deploy-manager: {{ .application.name }}
hanzo-cloud/app-deploy-manager-domain: {{ .options.host }}
spec:
rules:
- host: {{ .options.host }}
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: {{ .application.name }}
port:
number: 8080
{{- if .options.tlsSecretName }}
tls:
- hosts:
- {{ .options.host }}
secretName: {{ .options.tlsSecretName }}
{{- end }}