fork/chhoto-url

git clone https://git.julia.blue/fork/chhoto-url

SinTan1729docs: Shuffled around the locations of some doc files6fec03e

unicode
2.8 KiB83 linesraw
1apiVersion: apps/v1
2kind: StatefulSet
3metadata:
4  name: chhoto-url
5spec:
6  replicas: 1
7  selector:
8    matchLabels:
9      app: chhoto-url
10  template:
11    metadata:
12      labels:
13        app: chhoto-url
14    spec:
15      containers:
16        - name: chhoto-url
17          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
18          ports:
19            - containerPort: 4567
20          env:
21            - name: CHHOTO_PASSWORD
22              valueFrom:
23                secretKeyRef:
24                  name: secret
25                  key: password
26            {{- if .Values.api_key }}
27            - name: CHHOTO_API_KEY
28              valueFrom:
29                secretKeyRef:
30                  name: secret
31                  key: api_key
32            {{- end }}
33            {{- if .Values.hash_algorithm }}
34            - name: CHHOTO_HASH_ALGORITHM 
35              value: {{ .Values.hash_algorithm  }}
36            {{- end }}
37            - name: CHHOTO_DB_URL
38              value: /db/urls.sqlite
39            - name: CHHOTO_SITE_URL
40              value: "{{ .Values.protocol }}://{{ .Values.fqdn }}"
41            - name: CHHOTO_REDIRECT_METHOD
42              value: {{ .Values.redirect_method }}
43            - name: CHHOTO_SLUG_STYLE
44              value: {{ .Values.slug_style }}
45            - name: CHHOTO_SLUG_LENGTH
46              value: "{{ .Values.slug_length }}"
47            - name: CHHOTO_TRY_LONGER_SLUG
48              value: "{{ .Values.try_longer_slug }}"
49            - name: CHHOTO_PUBLIC_MODE
50              value: {{ .Values.public_mode }}
51            - name: CHHOTO_PUBLIC_MODE_EXPIRY_DELAY
52              value: {{ .Values.public_mode_expiry_delay }}
53            - name: CHHOTO_DISABLE_FRONTEND
54              value: {{ .Values.disable_frontend }}
55            - name: CHHOTO_ALLOW_CAPITAL_LETTERS 
56              value: {{ .Values.allow_capital_letters }}
57            - name: CHHOTO_FRONTEND_PAGE_SIZE
58              value: {{ .Values.frontend_page_size }}
59            {{- if .Values.custom_landing_directory }}
60            - name: CHHOTO_CUSTOM_LANDING_DIRECTORY
61              value: {{ .Values.custom_landing_directory }}
62            {{- end }}
63            {{- if .Values.cache_control_header }}
64            - name: CHHOTO_CACHE_CONTROL_HEADER
65              value: {{ .Values.cache_control_header }}
66            {{- end }}
67            - name: CHHOTO_SQLITE_USE_WAL_MODE
68              value: {{ .Values.use_wal_mode }}
69            {{- if .Values.ensure_acid }}
70            - name: CHHOTO_SQLITE_ENSURE_ACID
71              value: {{ .Values.ensure_acid }}
72            {{- end }}
73          volumeMounts:
74            - name: data
75              mountPath: /db
76  volumeClaimTemplates:
77    - metadata:
78        name: data
79      spec:
80        accessModes: [ "ReadWriteOnce" ]
81        resources:
82          requests:
83            storage: 100Mi