177 lines
5.3 KiB
YAML
177 lines
5.3 KiB
YAML
global: {}
|
|
image:
|
|
# -- The registry to pull the image from.
|
|
registry: docker.io
|
|
# -- The repository to pull the image from.
|
|
repository: clickhouse/clickhouse-server
|
|
# -- The docker tag, if left empty chart's appVersion will be used.
|
|
# @default -- `.Chart.AppVersion`
|
|
tag: ''
|
|
# -- The pull policy for the controller.
|
|
pullPolicy: IfNotPresent
|
|
|
|
nameOverride: ''
|
|
fullnameOverride: ''
|
|
|
|
controller:
|
|
# -- Create a workload for this chart.
|
|
enabled: true
|
|
# -- Type of the workload object.
|
|
kind: StatefulSet
|
|
# -- The number of replicas.
|
|
replicas: 1
|
|
# -- The controller update strategy. Currently only applies to controllers of kind `Deployment`.
|
|
updateStrategy: {}
|
|
# -- Additional annotations for the controller object.
|
|
annotations: {}
|
|
# -- Additional labels for the controller object.
|
|
labels: {}
|
|
|
|
service:
|
|
# -- Create a service for exposing this chart.
|
|
enabled: true
|
|
# -- The service type used.
|
|
type: ClusterIP
|
|
# -- ClusterIP used if service type is `ClusterIP`.
|
|
clusterIP: ''
|
|
# -- LoadBalancerIP if service type is `LoadBalancer`.
|
|
loadBalancerIP: ''
|
|
# -- Allowed addresses when service type is `LoadBalancer`.
|
|
loadBalancerSourceRanges: []
|
|
# -- Additional annotations for the service object.
|
|
annotations: {}
|
|
# -- Additional labels for the service object.
|
|
labels: {}
|
|
|
|
env:
|
|
# -- Timezone for the container.
|
|
- name: TZ
|
|
value: Europe/Paris
|
|
|
|
# -- List of extra arguments for the container.
|
|
extraArgs: []
|
|
# - --loglevel warning
|
|
|
|
ports:
|
|
rest:
|
|
# -- Enable the port inside the `Controller` and `Service` objects.
|
|
enabled: true
|
|
# -- The port used as internal port and cluster-wide port if `.service.type` == `ClusterIP`.
|
|
port: 8123
|
|
# -- The external port used if `.service.type` == `NodePort`.
|
|
nodePort: null
|
|
# -- The protocol used for the service.
|
|
protocol: TCP
|
|
rpc:
|
|
# -- Enable the port inside the `Controller` and `Service` objects.
|
|
enabled: true
|
|
# -- The port used as internal port and cluster-wide port if `.service.type` == `ClusterIP`.
|
|
port: 9000
|
|
# -- The external port used if `.service.type` == `NodePort`.
|
|
nodePort: null
|
|
# -- The protocol used for the service.
|
|
protocol: TCP
|
|
|
|
configMap:
|
|
# -- Create a new config map object.
|
|
create: true
|
|
# -- Mount path of the config map object.
|
|
mountPath: /etc/config
|
|
# -- Use an existing config map object.
|
|
existingConfigMap: ''
|
|
# -- Map of configuration files as strings.
|
|
files:
|
|
custom-users.xml: |
|
|
<clickhouse>
|
|
<users>
|
|
<default>
|
|
<networks>
|
|
<ip>::1</ip>
|
|
<ip>127.0.0.1</ip>
|
|
</networks>
|
|
</default>
|
|
<arcodange>
|
|
<password>clickhousearcodange</password>
|
|
<networks>
|
|
<ip>::/0</ip>
|
|
<ip>0.0.0.0/0</ip>
|
|
</networks>
|
|
<profile>default</profile>
|
|
<quota>default</quota>
|
|
<access_management>1</access_management>
|
|
</arcodange>
|
|
</users>
|
|
</clickhouse>
|
|
# file1.yml: |
|
|
# # contents
|
|
# file2.yml: |
|
|
# # contents
|
|
# -- Additional annotations for the config map object.
|
|
annotations: {}
|
|
# -- Additional labels for the config map object.
|
|
labels: {}
|
|
|
|
persistentVolumeClaim:
|
|
# -- Create a new persistent volume claim object.
|
|
create: true
|
|
# -- Mount path of the persistent volume claim object.
|
|
mountPath: /var/lib/clickhouse
|
|
# -- Access mode of the persistent volume claim object.
|
|
accessMode: ReadWriteOnce
|
|
# -- Volume mode of the persistent volume claim object.
|
|
volumeMode: Filesystem
|
|
# -- Storage request size for the persistent volume claim object.
|
|
size: 16Gi
|
|
# -- Storage class name for the persistent volume claim object.
|
|
storageClassName: ''
|
|
# -- Use an existing persistent volume claim object.
|
|
existingPersistentVolumeClaim: ''
|
|
# -- Additional annotations for the persistent volume claim object.
|
|
annotations: {}
|
|
# -- Additional labels for the persistent volume claim object.
|
|
labels: {}
|
|
|
|
serviceAccount:
|
|
# -- Create a `ServiceAccount` object.
|
|
create: true
|
|
# -- Specify the service account used for the controller.
|
|
name: ''
|
|
# -- Additional annotations for the role and role binding objects.
|
|
annotations: {}
|
|
# -- Additional labels for the role and role binding objects.
|
|
labels: {}
|
|
|
|
# -- Pod-level security attributes. More info [here](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context).
|
|
securityContext:
|
|
fsGroup: 101
|
|
runAsNonRoot: true
|
|
runAsGroup: 101
|
|
runAsUser: 101
|
|
|
|
# -- Compute resources used by the container. More info [here](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/).
|
|
resources: {}
|
|
# limits:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
# requests:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
|
|
# -- Pod-level affinity. More info [here](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling).
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/hostname
|
|
operator: NotIn
|
|
values:
|
|
- pi2
|
|
|
|
# -- Pod-level tolerations. More info [here](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling).
|
|
tolerations: []
|
|
# - key: node-role.kubernetes.io/control-plane
|
|
# operator: Exists
|
|
# effect: NoSchedule
|
|
|