fleet.yaml
· 1.8 KiB · YAML
原始文件
---
# https://fleet.rancher.io/ref-fleet-yaml
# The default namespace to be applied to resources. This field is not used to
# enforce or lock down the deployment to a specific namespace, but instead
# provide the default value of the namespace field if one is not specified
# in the manifests.
# Default: default
defaultNamespace: trillium
# All resources will be assigned to this namespace and if any cluster scoped
# resource exists the deployment will fail.
# Default: ""
#namespace: trillium
helm:
# A https URL to a Helm repo to download the chart from. It's typically easier
# to just use `chart` field and refer to a tgz file. If repo is used the
# value of `chart` will be used as the chart name to lookup in the Helm repository.
repo: https://charts.oecis.io
# Name of the chart within the repo
chart: trilium
# A custom release name to deploy the chart as. If not specified a release name
# will be generated by combining the invoking GitRepo.name + GitRepo.path.
releaseName: trillium
# The version of the chart or semver constraint of the chart to find. If a constraint
# is specified it is evaluated each time git changes.
# The version also determines which chart to download from OCI registries.
version: 0.1.0
# Makes helm skip the check for its own annotations
takeOwnership: false
# Any values that should be placed in the `values.yaml` and passed to helm during
# install.
values:
persistentVolume:
enabled: true
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
tls:
- secretName: notes-tls
hosts:
- notes.example.com
hosts:
- host: notes.example.com
paths:
- path: /
pathType: ImplementationSpecific
kustomize:
dir: overlays/
1 | --- |
2 | # https://fleet.rancher.io/ref-fleet-yaml |
3 | |
4 | # The default namespace to be applied to resources. This field is not used to |
5 | # enforce or lock down the deployment to a specific namespace, but instead |
6 | # provide the default value of the namespace field if one is not specified |
7 | # in the manifests. |
8 | # Default: default |
9 | defaultNamespace: trillium |
10 | |
11 | # All resources will be assigned to this namespace and if any cluster scoped |
12 | # resource exists the deployment will fail. |
13 | # Default: "" |
14 | #namespace: trillium |
15 | |
16 | helm: |
17 | # A https URL to a Helm repo to download the chart from. It's typically easier |
18 | # to just use `chart` field and refer to a tgz file. If repo is used the |
19 | # value of `chart` will be used as the chart name to lookup in the Helm repository. |
20 | repo: https://charts.oecis.io |
21 | |
22 | # Name of the chart within the repo |
23 | chart: trilium |
24 | # A custom release name to deploy the chart as. If not specified a release name |
25 | # will be generated by combining the invoking GitRepo.name + GitRepo.path. |
26 | releaseName: trillium |
27 | |
28 | # The version of the chart or semver constraint of the chart to find. If a constraint |
29 | # is specified it is evaluated each time git changes. |
30 | # The version also determines which chart to download from OCI registries. |
31 | version: 0.1.0 |
32 | |
33 | # Makes helm skip the check for its own annotations |
34 | takeOwnership: false |
35 | |
36 | # Any values that should be placed in the `values.yaml` and passed to helm during |
37 | # install. |
38 | values: |
39 | persistentVolume: |
40 | enabled: true |
41 | ingress: |
42 | enabled: true |
43 | annotations: |
44 | cert-manager.io/cluster-issuer: letsencrypt-prod |
45 | tls: |
46 | - secretName: notes-tls |
47 | hosts: |
48 | - notes.example.com |
49 | hosts: |
50 | - host: notes.example.com |
51 | paths: |
52 | - path: / |
53 | pathType: ImplementationSpecific |
54 | |
55 | |
56 | kustomize: |
57 | dir: overlays/ |
overlays-kustomization.yaml
· 190 B · YAML
原始文件
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
patches:
- target:
group: apps
version: v1
kind: StatefulSet
name: trillium-trilium
path: statefulset.yaml
1 | apiVersion: kustomize.config.k8s.io/v1beta1 |
2 | kind: Kustomization |
3 | |
4 | patches: |
5 | - target: |
6 | group: apps |
7 | version: v1 |
8 | kind: StatefulSet |
9 | name: trillium-trilium |
10 | path: statefulset.yaml |
overlays-statefulset.yaml
· 260 B · YAML
原始文件
---
- op: add
path: /spec/template/spec/containers/0/startupProbe
value:
failureThreshold: 300
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 1
periodSeconds: 1
successThreshold: 1
timeoutSeconds: 1%
1 | --- |
2 | - op: add |
3 | path: /spec/template/spec/containers/0/startupProbe |
4 | value: |
5 | failureThreshold: 300 |
6 | httpGet: |
7 | path: / |
8 | port: 8080 |
9 | scheme: HTTP |
10 | initialDelaySeconds: 1 |
11 | periodSeconds: 1 |
12 | successThreshold: 1 |
13 | timeoutSeconds: 1% |