diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-09-02 09:33:55 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-09-02 09:33:55 -0400 |
| commit | d8367478b94af4492f41bee1c071a9a53e1e9700 (patch) | |
| tree | 56e02fb1424e6a4d28130f8ac01fa3ff142684dc /cmd/within.website | |
| parent | 4628a6e4ba4920925bef6b5dbb6dfd15c7b08a73 (diff) | |
| download | x-d8367478b94af4492f41bee1c071a9a53e1e9700.tar.xz x-d8367478b94af4492f41bee1c071a9a53e1e9700.zip | |
kube/alrest: move manifests here
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/within.website')
| -rw-r--r-- | cmd/within.website/manifest.yaml | 150 |
1 files changed, 0 insertions, 150 deletions
diff --git a/cmd/within.website/manifest.yaml b/cmd/within.website/manifest.yaml deleted file mode 100644 index e0e915f..0000000 --- a/cmd/within.website/manifest.yaml +++ /dev/null @@ -1,150 +0,0 @@ ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: within-website -data: - "config.ts": | - export interface Repo { - kind: "gitea" | "github"; - domain: string; - user: string; - repo: string; - description: string; - } - - const githubRepo = (name: string, description: string): Repo => { - return { - kind: "github", - domain: "github.com", - user: "Xe", - repo: name, - description, - }; - }; - - const giteaRepo = (name: string, description: string): Repo => { - return { - kind: "gitea", - domain: "tulpa.dev", - user: "cadey", - repo: name, - description, - }; - }; - - const repos: Repo[] = [ - githubRepo("derpigo", "A Derpibooru/Furbooru API client in Go. This is used to monitor Derpibooru/Furbooru for images by artists I care about and archive them."), - githubRepo("eclier", "A command router for Go programs that implements every command in Lua. This was an experiment for making extensible command-line applications with Lua for extending them."), - githubRepo("gcss", "A CSS preprocessor for Go. This is a legacy Go package that I am bringing forward to modern Go standards."), - giteaRepo("gopher", "A Gopher (RFC 1436) client/server stack for Go applications. This allows users to write custom Gopher clients and servers."), - githubRepo("ln", "The natural log function for Go: an easy package for structured logging. This is the logging stack that I use for most of my personal projects."), - githubRepo("x", "Various experimental things. /x/ is my monorepo of side projects, hobby programming, and other explorations of how programming in Go can be."), - ]; - - export default repos; ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: within-website - labels: - app.kubernetes.io/name: within-website -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: within-website - template: - metadata: - labels: - app.kubernetes.io/name: within-website - spec: - securityContext: - fsGroup: 1000 - volumes: - - name: tyson - configMap: - name: within-website - containers: - - name: main - image: ghcr.io/xe/x/within-website:latest - imagePullPolicy: "Always" - resources: - limits: - cpu: "500m" - memory: "256Mi" - requests: - cpu: "250m" - memory: "128Mi" - securityContext: - runAsUser: 1000 - runAsGroup: 1000 - runAsNonRoot: true - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - seccompProfile: - type: RuntimeDefault - livenessProbe: - httpGet: - path: / - port: 8080 - httpHeaders: - - name: X-Kubernetes - value: "is kinda okay" - initialDelaySeconds: 3 - periodSeconds: 3 - env: - - name: TYSON_CONFIG - value: "/etc/within.website/config.ts" - - name: PORT - value: "8080" - - name: SLOG_LEVEL - value: DEBUG - volumeMounts: - - name: tyson - mountPath: /etc/within.website - readOnly: true ---- -apiVersion: v1 -kind: Service -metadata: - name: within-website - labels: - app.kubernetes.io/name: within-website -spec: - selector: - app.kubernetes.io/name: within-website - ports: - - port: 80 - targetPort: 8080 - name: http - type: ClusterIP ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: within-website - labels: - app.kubernetes.io/name: within-website - annotations: - cert-manager.io/cluster-issuer: "letsencrypt-prod" -spec: - ingressClassName: nginx - tls: - - hosts: - - within.website - secretName: within-website-public-tls - rules: - - host: within.website - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: within-website - port: - name: http |
