mirror of
https://github.com/optim-enterprises-bv/openlan-cgw.git
synced 2025-11-02 03:07:47 +00:00
@@ -1,8 +1,8 @@
|
|||||||
name: patroni-compose
|
name: docker-compose
|
||||||
description: A generated Helm Chart for patroni-compose from Skippbox Kompose
|
description: A generated Helm Chart for docker-compose from Skippbox Kompose
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
keywords:
|
keywords:
|
||||||
- patroni-compose
|
- docker-compose
|
||||||
sources:
|
sources:
|
||||||
home:
|
home:
|
||||||
|
|||||||
69
utils/helm/cluster/templates/broker-deployment.yaml
Normal file
69
utils/helm/cluster/templates/broker-deployment.yaml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: broker
|
||||||
|
name: broker
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: broker
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
|
labels:
|
||||||
|
io.kompose.network/patroni-default: "true"
|
||||||
|
io.kompose.service: broker
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: ALLOW_PLAINTEXT_LISTENER
|
||||||
|
value: "yes"
|
||||||
|
- name: BITNAMI_DEBUG
|
||||||
|
value: "yes"
|
||||||
|
- name: KAFKA_AUTO_CREATE_TOPICS_ENABLE
|
||||||
|
value: "true"
|
||||||
|
- name: KAFKA_BROKER_ID
|
||||||
|
value: "1"
|
||||||
|
- name: KAFKA_CFG_ADVERTISED_LISTENERS
|
||||||
|
value: PLAINTEXT://127.0.0.1:9092,EXTERNAL://kafka_b:9094
|
||||||
|
- name: KAFKA_CFG_CONTROLLER_LISTENER_NAMES
|
||||||
|
value: CONTROLLER
|
||||||
|
- name: KAFKA_CFG_CONTROLLER_QUORUM_VOTERS
|
||||||
|
value: 1@127.0.0.1:9093
|
||||||
|
- name: KAFKA_CFG_LISTENERS
|
||||||
|
value: PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094
|
||||||
|
- name: KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP
|
||||||
|
value: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
|
||||||
|
- name: KAFKA_CFG_NODE_ID
|
||||||
|
value: "1"
|
||||||
|
- name: KAFKA_CFG_NUM_PARTITIONS
|
||||||
|
value: "2"
|
||||||
|
- name: KAFKA_CFG_PROCESS_ROLES
|
||||||
|
value: broker,controller
|
||||||
|
- name: KAFKA_ENABLE_KRAFT
|
||||||
|
value: "yes"
|
||||||
|
image: docker.io/bitnami/kafka:latest
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- kafka-topics.sh --bootstrap-server localhost:9092 --list
|
||||||
|
failureThreshold: 3
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
name: broker
|
||||||
|
ports:
|
||||||
|
- containerPort: 9092
|
||||||
|
hostPort: 9092
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 9094
|
||||||
|
hostPort: 9094
|
||||||
|
protocol: TCP
|
||||||
|
restartPolicy: Always
|
||||||
19
utils/helm/cluster/templates/broker-service.yaml
Normal file
19
utils/helm/cluster/templates/broker-service.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: broker
|
||||||
|
name: broker
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "9092"
|
||||||
|
port: 9092
|
||||||
|
targetPort: 9092
|
||||||
|
- name: "9094"
|
||||||
|
port: 9094
|
||||||
|
targetPort: 9094
|
||||||
|
selector:
|
||||||
|
io.kompose.service: broker
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
config.xml: |
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<logger>
|
|
||||||
<level>debug</level>
|
|
||||||
<log>/var/log/clickhouse-server/clickhouse-server.log</log>
|
|
||||||
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
|
|
||||||
<size>1000M</size>
|
|
||||||
<count>3</count>
|
|
||||||
</logger>
|
|
||||||
<display_name>cluster_2S_2R node 1</display_name>
|
|
||||||
<listen_host>0.0.0.0</listen_host>
|
|
||||||
<http_port>8123</http_port>
|
|
||||||
<tcp_port>9000</tcp_port>
|
|
||||||
<user_directories>
|
|
||||||
<users_xml>
|
|
||||||
<path>users.xml</path>
|
|
||||||
</users_xml>
|
|
||||||
<local_directory>
|
|
||||||
<path>/var/lib/clickhouse/access/</path>
|
|
||||||
</local_directory>
|
|
||||||
</user_directories>
|
|
||||||
<distributed_ddl>
|
|
||||||
<path>/clickhouse/task_queue/ddl</path>
|
|
||||||
</distributed_ddl>
|
|
||||||
<remote_servers>
|
|
||||||
<cluster_2S_2R>
|
|
||||||
<shard>
|
|
||||||
<internal_replication>true</internal_replication>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-01</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-03</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
</shard>
|
|
||||||
<shard>
|
|
||||||
<internal_replication>true</internal_replication>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-02</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-04</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
</shard>
|
|
||||||
</cluster_2S_2R>
|
|
||||||
</remote_servers>
|
|
||||||
<zookeeper>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-01</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-02</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-03</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
</zookeeper>
|
|
||||||
<macros>
|
|
||||||
<shard>01</shard>
|
|
||||||
<replica>01</replica>
|
|
||||||
</macros>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-01
|
|
||||||
name: clickhouse-01-cm0
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
users.xml: |
|
|
||||||
<?xml version="1.0"?>
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<profiles>
|
|
||||||
<default>
|
|
||||||
<max_memory_usage>10000000000</max_memory_usage>
|
|
||||||
<use_uncompressed_cache>0</use_uncompressed_cache>
|
|
||||||
<load_balancing>in_order</load_balancing>
|
|
||||||
<log_queries>1</log_queries>
|
|
||||||
</default>
|
|
||||||
</profiles>
|
|
||||||
<users>
|
|
||||||
<default>
|
|
||||||
<access_management>1</access_management>
|
|
||||||
<profile>default</profile>
|
|
||||||
<networks>
|
|
||||||
<ip>::/0</ip>
|
|
||||||
</networks>
|
|
||||||
<quota>default</quota>
|
|
||||||
<access_management>1</access_management>
|
|
||||||
<named_collection_control>1</named_collection_control>
|
|
||||||
<show_named_collections>1</show_named_collections>
|
|
||||||
<show_named_collections_secrets>1</show_named_collections_secrets>
|
|
||||||
</default>
|
|
||||||
</users>
|
|
||||||
<quotas>
|
|
||||||
<default>
|
|
||||||
<interval>
|
|
||||||
<duration>3600</duration>
|
|
||||||
<queries>0</queries>
|
|
||||||
<errors>0</errors>
|
|
||||||
<result_rows>0</result_rows>
|
|
||||||
<read_rows>0</read_rows>
|
|
||||||
<execution_time>0</execution_time>
|
|
||||||
</interval>
|
|
||||||
</default>
|
|
||||||
</quotas>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-01
|
|
||||||
name: clickhouse-01-cm1
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-01
|
|
||||||
name: clickhouse-01
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: clickhouse-01
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-default: "true"
|
|
||||||
io.kompose.service: clickhouse-01
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: clickhouse/clickhouse-server:latest
|
|
||||||
name: clickhouse-01
|
|
||||||
ports:
|
|
||||||
- containerPort: 8123
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 8123
|
|
||||||
protocol: TCP
|
|
||||||
- containerPort: 9000
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 9000
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/clickhouse-server/config.d/config.xml
|
|
||||||
name: clickhouse-01-cm0
|
|
||||||
subPath: config.xml
|
|
||||||
- mountPath: /etc/clickhouse-server/users.d/users.xml
|
|
||||||
name: clickhouse-01-cm1
|
|
||||||
subPath: users.xml
|
|
||||||
hostname: clickhouse-01
|
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: config.xml
|
|
||||||
path: config.xml
|
|
||||||
name: clickhouse-01-cm0
|
|
||||||
name: clickhouse-01-cm0
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: users.xml
|
|
||||||
path: users.xml
|
|
||||||
name: clickhouse-01-cm1
|
|
||||||
name: clickhouse-01-cm1
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-01
|
|
||||||
name: clickhouse-01
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "8123"
|
|
||||||
port: 8123
|
|
||||||
targetPort: 8123
|
|
||||||
- name: "9000"
|
|
||||||
port: 9000
|
|
||||||
targetPort: 9000
|
|
||||||
selector:
|
|
||||||
io.kompose.service: clickhouse-01
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
config.xml: |
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<logger>
|
|
||||||
<level>debug</level>
|
|
||||||
<log>/var/log/clickhouse-server/clickhouse-server.log</log>
|
|
||||||
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
|
|
||||||
<size>1000M</size>
|
|
||||||
<count>3</count>
|
|
||||||
</logger>
|
|
||||||
<display_name>cluster_2S_2R node 2</display_name>
|
|
||||||
<listen_host>0.0.0.0</listen_host>
|
|
||||||
<http_port>8123</http_port>
|
|
||||||
<tcp_port>9000</tcp_port>
|
|
||||||
<user_directories>
|
|
||||||
<users_xml>
|
|
||||||
<path>users.xml</path>
|
|
||||||
</users_xml>
|
|
||||||
<local_directory>
|
|
||||||
<path>/var/lib/clickhouse/access/</path>
|
|
||||||
</local_directory>
|
|
||||||
</user_directories>
|
|
||||||
<distributed_ddl>
|
|
||||||
<path>/clickhouse/task_queue/ddl</path>
|
|
||||||
</distributed_ddl>
|
|
||||||
<remote_servers>
|
|
||||||
<cluster_2S_2R>
|
|
||||||
<shard>
|
|
||||||
<internal_replication>true</internal_replication>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-01</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-03</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
</shard>
|
|
||||||
<shard>
|
|
||||||
<internal_replication>true</internal_replication>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-02</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-04</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
</shard>
|
|
||||||
</cluster_2S_2R>
|
|
||||||
</remote_servers>
|
|
||||||
<zookeeper>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-01</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-02</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-03</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
</zookeeper>
|
|
||||||
<macros>
|
|
||||||
<shard>02</shard>
|
|
||||||
<replica>01</replica>
|
|
||||||
</macros>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-02
|
|
||||||
name: clickhouse-02-cm0
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
users.xml: |
|
|
||||||
<?xml version="1.0"?>
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<profiles>
|
|
||||||
<default>
|
|
||||||
<max_memory_usage>10000000000</max_memory_usage>
|
|
||||||
<use_uncompressed_cache>0</use_uncompressed_cache>
|
|
||||||
<load_balancing>in_order</load_balancing>
|
|
||||||
<log_queries>1</log_queries>
|
|
||||||
</default>
|
|
||||||
</profiles>
|
|
||||||
<users>
|
|
||||||
<default>
|
|
||||||
<access_management>1</access_management>
|
|
||||||
<profile>default</profile>
|
|
||||||
<networks>
|
|
||||||
<ip>::/0</ip>
|
|
||||||
</networks>
|
|
||||||
<quota>default</quota>
|
|
||||||
<access_management>1</access_management>
|
|
||||||
<named_collection_control>1</named_collection_control>
|
|
||||||
<show_named_collections>1</show_named_collections>
|
|
||||||
<show_named_collections_secrets>1</show_named_collections_secrets>
|
|
||||||
</default>
|
|
||||||
</users>
|
|
||||||
<quotas>
|
|
||||||
<default>
|
|
||||||
<interval>
|
|
||||||
<duration>3600</duration>
|
|
||||||
<queries>0</queries>
|
|
||||||
<errors>0</errors>
|
|
||||||
<result_rows>0</result_rows>
|
|
||||||
<read_rows>0</read_rows>
|
|
||||||
<execution_time>0</execution_time>
|
|
||||||
</interval>
|
|
||||||
</default>
|
|
||||||
</quotas>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-02
|
|
||||||
name: clickhouse-02-cm1
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-02
|
|
||||||
name: clickhouse-02
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: clickhouse-02
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-default: "true"
|
|
||||||
io.kompose.service: clickhouse-02
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: clickhouse/clickhouse-server:latest
|
|
||||||
name: clickhouse-02
|
|
||||||
ports:
|
|
||||||
- containerPort: 8123
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 8124
|
|
||||||
protocol: TCP
|
|
||||||
- containerPort: 9000
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 9001
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/clickhouse-server/config.d/config.xml
|
|
||||||
name: clickhouse-02-cm0
|
|
||||||
subPath: config.xml
|
|
||||||
- mountPath: /etc/clickhouse-server/users.d/users.xml
|
|
||||||
name: clickhouse-02-cm1
|
|
||||||
subPath: users.xml
|
|
||||||
hostname: clickhouse-02
|
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: config.xml
|
|
||||||
path: config.xml
|
|
||||||
name: clickhouse-02-cm0
|
|
||||||
name: clickhouse-02-cm0
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: users.xml
|
|
||||||
path: users.xml
|
|
||||||
name: clickhouse-02-cm1
|
|
||||||
name: clickhouse-02-cm1
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-02
|
|
||||||
name: clickhouse-02
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "8124"
|
|
||||||
port: 8124
|
|
||||||
targetPort: 8123
|
|
||||||
- name: "9001"
|
|
||||||
port: 9001
|
|
||||||
targetPort: 9000
|
|
||||||
selector:
|
|
||||||
io.kompose.service: clickhouse-02
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
config.xml: |
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<logger>
|
|
||||||
<level>debug</level>
|
|
||||||
<log>/var/log/clickhouse-server/clickhouse-server.log</log>
|
|
||||||
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
|
|
||||||
<size>1000M</size>
|
|
||||||
<count>3</count>
|
|
||||||
</logger>
|
|
||||||
<display_name>cluster_2S_2R node 3</display_name>
|
|
||||||
<listen_host>0.0.0.0</listen_host>
|
|
||||||
<http_port>8123</http_port>
|
|
||||||
<tcp_port>9000</tcp_port>
|
|
||||||
<user_directories>
|
|
||||||
<users_xml>
|
|
||||||
<path>users.xml</path>
|
|
||||||
</users_xml>
|
|
||||||
<local_directory>
|
|
||||||
<path>/var/lib/clickhouse/access/</path>
|
|
||||||
</local_directory>
|
|
||||||
</user_directories>
|
|
||||||
<distributed_ddl>
|
|
||||||
<path>/clickhouse/task_queue/ddl</path>
|
|
||||||
</distributed_ddl>
|
|
||||||
<remote_servers>
|
|
||||||
<cluster_2S_2R>
|
|
||||||
<shard>
|
|
||||||
<internal_replication>true</internal_replication>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-01</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-03</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
</shard>
|
|
||||||
<shard>
|
|
||||||
<internal_replication>true</internal_replication>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-02</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
<replica>
|
|
||||||
<host>clickhouse-04</host>
|
|
||||||
<port>9000</port>
|
|
||||||
</replica>
|
|
||||||
</shard>
|
|
||||||
</cluster_2S_2R>
|
|
||||||
</remote_servers>
|
|
||||||
<zookeeper>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-01</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-02</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
<node>
|
|
||||||
<host>clickhouse-keeper-03</host>
|
|
||||||
<port>9181</port>
|
|
||||||
</node>
|
|
||||||
</zookeeper>
|
|
||||||
<macros>
|
|
||||||
<shard>01</shard>
|
|
||||||
<replica>02</replica>
|
|
||||||
</macros>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-03
|
|
||||||
name: clickhouse-03-cm0
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
users.xml: |
|
|
||||||
<?xml version="1.0"?>
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<profiles>
|
|
||||||
<default>
|
|
||||||
<max_memory_usage>10000000000</max_memory_usage>
|
|
||||||
<use_uncompressed_cache>0</use_uncompressed_cache>
|
|
||||||
<load_balancing>in_order</load_balancing>
|
|
||||||
<log_queries>1</log_queries>
|
|
||||||
</default>
|
|
||||||
</profiles>
|
|
||||||
<users>
|
|
||||||
<default>
|
|
||||||
<access_management>1</access_management>
|
|
||||||
<profile>default</profile>
|
|
||||||
<networks>
|
|
||||||
<ip>::/0</ip>
|
|
||||||
</networks>
|
|
||||||
<quota>default</quota>
|
|
||||||
<access_management>1</access_management>
|
|
||||||
<named_collection_control>1</named_collection_control>
|
|
||||||
<show_named_collections>1</show_named_collections>
|
|
||||||
<show_named_collections_secrets>1</show_named_collections_secrets>
|
|
||||||
</default>
|
|
||||||
</users>
|
|
||||||
<quotas>
|
|
||||||
<default>
|
|
||||||
<interval>
|
|
||||||
<duration>3600</duration>
|
|
||||||
<queries>0</queries>
|
|
||||||
<errors>0</errors>
|
|
||||||
<result_rows>0</result_rows>
|
|
||||||
<read_rows>0</read_rows>
|
|
||||||
<execution_time>0</execution_time>
|
|
||||||
</interval>
|
|
||||||
</default>
|
|
||||||
</quotas>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-03
|
|
||||||
name: clickhouse-03-cm1
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-03
|
|
||||||
name: clickhouse-03
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: clickhouse-03
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-default: "true"
|
|
||||||
io.kompose.service: clickhouse-03
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: clickhouse/clickhouse-server:latest
|
|
||||||
name: clickhouse-03
|
|
||||||
ports:
|
|
||||||
- containerPort: 8123
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 8125
|
|
||||||
protocol: TCP
|
|
||||||
- containerPort: 9000
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 9002
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/clickhouse-server/config.d/config.xml
|
|
||||||
name: clickhouse-03-cm0
|
|
||||||
subPath: config.xml
|
|
||||||
- mountPath: /etc/clickhouse-server/users.d/users.xml
|
|
||||||
name: clickhouse-03-cm1
|
|
||||||
subPath: users.xml
|
|
||||||
hostname: clickhouse-03
|
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: config.xml
|
|
||||||
path: config.xml
|
|
||||||
name: clickhouse-03-cm0
|
|
||||||
name: clickhouse-03-cm0
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: users.xml
|
|
||||||
path: users.xml
|
|
||||||
name: clickhouse-03-cm1
|
|
||||||
name: clickhouse-03-cm1
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-03
|
|
||||||
name: clickhouse-03
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "8125"
|
|
||||||
port: 8125
|
|
||||||
targetPort: 8123
|
|
||||||
- name: "9002"
|
|
||||||
port: 9002
|
|
||||||
targetPort: 9000
|
|
||||||
selector:
|
|
||||||
io.kompose.service: clickhouse-03
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
keeper_config.xml: |
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<logger>
|
|
||||||
<level>information</level>
|
|
||||||
<log>/var/log/clickhouse-keeper/clickhouse-keeper.log</log>
|
|
||||||
<errorlog>/var/log/clickhouse-keeper/clickhouse-keeper.err.log</errorlog>
|
|
||||||
<size>1000M</size>
|
|
||||||
<count>3</count>
|
|
||||||
</logger>
|
|
||||||
<listen_host>0.0.0.0</listen_host>
|
|
||||||
<keeper_server>
|
|
||||||
<tcp_port>9181</tcp_port>
|
|
||||||
<server_id>1</server_id>
|
|
||||||
<log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path>
|
|
||||||
<snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path>
|
|
||||||
<coordination_settings>
|
|
||||||
<operation_timeout_ms>10000</operation_timeout_ms>
|
|
||||||
<session_timeout_ms>30000</session_timeout_ms>
|
|
||||||
<raft_logs_level>information</raft_logs_level>
|
|
||||||
</coordination_settings>
|
|
||||||
<raft_configuration>
|
|
||||||
<server>
|
|
||||||
<id>1</id>
|
|
||||||
<hostname>clickhouse-keeper-01</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
<server>
|
|
||||||
<id>2</id>
|
|
||||||
<hostname>clickhouse-keeper-02</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
<server>
|
|
||||||
<id>3</id>
|
|
||||||
<hostname>clickhouse-keeper-03</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
</raft_configuration>
|
|
||||||
</keeper_server>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-01
|
|
||||||
name: clickhouse-keeper-01-cm0
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-01
|
|
||||||
name: clickhouse-keeper-01
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: clickhouse-keeper-01
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-default: "true"
|
|
||||||
io.kompose.service: clickhouse-keeper-01
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: clickhouse/clickhouse-keeper:latest-alpine
|
|
||||||
name: clickhouse-keeper-01
|
|
||||||
ports:
|
|
||||||
- containerPort: 9181
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 9181
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/clickhouse-keeper/keeper_config.xml
|
|
||||||
name: clickhouse-keeper-01-cm0
|
|
||||||
subPath: keeper_config.xml
|
|
||||||
hostname: clickhouse-keeper-01
|
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: keeper_config.xml
|
|
||||||
path: keeper_config.xml
|
|
||||||
name: clickhouse-keeper-01-cm0
|
|
||||||
name: clickhouse-keeper-01-cm0
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-01
|
|
||||||
name: clickhouse-keeper-01
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "9181"
|
|
||||||
port: 9181
|
|
||||||
targetPort: 9181
|
|
||||||
selector:
|
|
||||||
io.kompose.service: clickhouse-keeper-01
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
keeper_config.xml: |
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<logger>
|
|
||||||
<level>information</level>
|
|
||||||
<log>/var/log/clickhouse-keeper/clickhouse-keeper.log</log>
|
|
||||||
<errorlog>/var/log/clickhouse-keeper/clickhouse-keeper.err.log</errorlog>
|
|
||||||
<size>1000M</size>
|
|
||||||
<count>3</count>
|
|
||||||
</logger>
|
|
||||||
<listen_host>0.0.0.0</listen_host>
|
|
||||||
<keeper_server>
|
|
||||||
<tcp_port>9181</tcp_port>
|
|
||||||
<server_id>2</server_id>
|
|
||||||
<log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path>
|
|
||||||
<snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path>
|
|
||||||
<coordination_settings>
|
|
||||||
<operation_timeout_ms>10000</operation_timeout_ms>
|
|
||||||
<session_timeout_ms>30000</session_timeout_ms>
|
|
||||||
<raft_logs_level>information</raft_logs_level>
|
|
||||||
</coordination_settings>
|
|
||||||
<raft_configuration>
|
|
||||||
<server>
|
|
||||||
<id>1</id>
|
|
||||||
<hostname>clickhouse-keeper-01</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
<server>
|
|
||||||
<id>2</id>
|
|
||||||
<hostname>clickhouse-keeper-02</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
<server>
|
|
||||||
<id>3</id>
|
|
||||||
<hostname>clickhouse-keeper-03</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
</raft_configuration>
|
|
||||||
</keeper_server>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-02
|
|
||||||
name: clickhouse-keeper-02-cm0
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-02
|
|
||||||
name: clickhouse-keeper-02
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: clickhouse-keeper-02
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-default: "true"
|
|
||||||
io.kompose.service: clickhouse-keeper-02
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: clickhouse/clickhouse-keeper:latest-alpine
|
|
||||||
name: clickhouse-keeper-02
|
|
||||||
ports:
|
|
||||||
- containerPort: 9181
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 9182
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/clickhouse-keeper/keeper_config.xml
|
|
||||||
name: clickhouse-keeper-02-cm0
|
|
||||||
subPath: keeper_config.xml
|
|
||||||
hostname: clickhouse-keeper-02
|
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: keeper_config.xml
|
|
||||||
path: keeper_config.xml
|
|
||||||
name: clickhouse-keeper-02-cm0
|
|
||||||
name: clickhouse-keeper-02-cm0
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-02
|
|
||||||
name: clickhouse-keeper-02
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "9182"
|
|
||||||
port: 9182
|
|
||||||
targetPort: 9181
|
|
||||||
selector:
|
|
||||||
io.kompose.service: clickhouse-keeper-02
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
keeper_config.xml: |
|
|
||||||
<clickhouse replace="true">
|
|
||||||
<logger>
|
|
||||||
<level>information</level>
|
|
||||||
<log>/var/log/clickhouse-keeper/clickhouse-keeper.log</log>
|
|
||||||
<errorlog>/var/log/clickhouse-keeper/clickhouse-keeper.err.log</errorlog>
|
|
||||||
<size>1000M</size>
|
|
||||||
<count>3</count>
|
|
||||||
</logger>
|
|
||||||
<listen_host>0.0.0.0</listen_host>
|
|
||||||
<keeper_server>
|
|
||||||
<tcp_port>9181</tcp_port>
|
|
||||||
<server_id>3</server_id>
|
|
||||||
<log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path>
|
|
||||||
<snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path>
|
|
||||||
<coordination_settings>
|
|
||||||
<operation_timeout_ms>10000</operation_timeout_ms>
|
|
||||||
<session_timeout_ms>30000</session_timeout_ms>
|
|
||||||
<raft_logs_level>information</raft_logs_level>
|
|
||||||
</coordination_settings>
|
|
||||||
<raft_configuration>
|
|
||||||
<server>
|
|
||||||
<id>1</id>
|
|
||||||
<hostname>clickhouse-keeper-01</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
<server>
|
|
||||||
<id>2</id>
|
|
||||||
<hostname>clickhouse-keeper-02</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
<server>
|
|
||||||
<id>3</id>
|
|
||||||
<hostname>clickhouse-keeper-03</hostname>
|
|
||||||
<port>9234</port>
|
|
||||||
</server>
|
|
||||||
</raft_configuration>
|
|
||||||
</keeper_server>
|
|
||||||
</clickhouse>
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
use-subpath: "true"
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-03
|
|
||||||
name: clickhouse-keeper-03-cm0
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-03
|
|
||||||
name: clickhouse-keeper-03
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: clickhouse-keeper-03
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-default: "true"
|
|
||||||
io.kompose.service: clickhouse-keeper-03
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: clickhouse/clickhouse-keeper:latest-alpine
|
|
||||||
name: clickhouse-keeper-03
|
|
||||||
ports:
|
|
||||||
- containerPort: 9181
|
|
||||||
hostIP: 127.0.0.1
|
|
||||||
hostPort: 9183
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/clickhouse-keeper/keeper_config.xml
|
|
||||||
name: clickhouse-keeper-03-cm0
|
|
||||||
subPath: keeper_config.xml
|
|
||||||
hostname: clickhouse-keeper-03
|
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
|
||||||
- configMap:
|
|
||||||
items:
|
|
||||||
- key: keeper_config.xml
|
|
||||||
path: keeper_config.xml
|
|
||||||
name: clickhouse-keeper-03-cm0
|
|
||||||
name: clickhouse-keeper-03-cm0
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: clickhouse-keeper-03
|
|
||||||
name: clickhouse-keeper-03
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "9183"
|
|
||||||
port: 9183
|
|
||||||
targetPort: 9181
|
|
||||||
selector:
|
|
||||||
io.kompose.service: clickhouse-keeper-03
|
|
||||||
@@ -2,7 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: etcd1
|
io.kompose.service: etcd1
|
||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/patroni-demo: "true"
|
io.kompose.network/patroni-demo: "true"
|
||||||
@@ -41,7 +41,7 @@ spec:
|
|||||||
value: http://0.0.0.0:2380
|
value: http://0.0.0.0:2380
|
||||||
- name: ETCD_UNSUPPORTED_ARCH
|
- name: ETCD_UNSUPPORTED_ARCH
|
||||||
value: arm64
|
value: arm64
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
image: harbor.io.optimcloud.com/optimcloud/patroni:latest
|
||||||
name: demo-etcd1
|
name: demo-etcd1
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 2379
|
- containerPort: 2379
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: etcd1
|
io.kompose.service: etcd1
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: etcd2
|
io.kompose.service: etcd2
|
||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/patroni-demo: "true"
|
io.kompose.network/patroni-demo: "true"
|
||||||
@@ -41,7 +41,7 @@ spec:
|
|||||||
value: http://0.0.0.0:2380
|
value: http://0.0.0.0:2380
|
||||||
- name: ETCD_UNSUPPORTED_ARCH
|
- name: ETCD_UNSUPPORTED_ARCH
|
||||||
value: arm64
|
value: arm64
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
image: harbor.io.optimcloud.com/optimcloud/patroni:latest
|
||||||
name: demo-etcd2
|
name: demo-etcd2
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 2379
|
- containerPort: 2379
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: etcd2
|
io.kompose.service: etcd2
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: etcd3
|
io.kompose.service: etcd3
|
||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/patroni-demo: "true"
|
io.kompose.network/patroni-demo: "true"
|
||||||
@@ -41,7 +41,7 @@ spec:
|
|||||||
value: http://0.0.0.0:2380
|
value: http://0.0.0.0:2380
|
||||||
- name: ETCD_UNSUPPORTED_ARCH
|
- name: ETCD_UNSUPPORTED_ARCH
|
||||||
value: arm64
|
value: arm64
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
image: harbor.io.optimcloud.com/optimcloud/patroni:latest
|
||||||
name: demo-etcd3
|
name: demo-etcd3
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 2379
|
- containerPort: 2379
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: etcd3
|
io.kompose.service: etcd3
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: haproxy
|
io.kompose.service: haproxy
|
||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/patroni-demo: "true"
|
io.kompose.network/patroni-demo: "true"
|
||||||
@@ -27,10 +27,6 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: ETCDCTL_ENDPOINTS
|
- name: ETCDCTL_ENDPOINTS
|
||||||
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
||||||
- name: PATRONI_CITUS_DATABASE
|
|
||||||
value: citus
|
|
||||||
- name: PATRONI_CITUS_GROUP
|
|
||||||
value: "0"
|
|
||||||
- name: PATRONI_ETCD3_HOSTS
|
- name: PATRONI_ETCD3_HOSTS
|
||||||
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
||||||
- name: PATRONI_REPLICATION_PASSWORD
|
- name: PATRONI_REPLICATION_PASSWORD
|
||||||
@@ -75,15 +71,7 @@ spec:
|
|||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: PATRONI_admin_PASSWORD
|
key: PATRONI_admin_PASSWORD
|
||||||
name: patroni-env
|
name: patroni-env
|
||||||
- name: PGSSLCERT
|
image: harbor.io.optimcloud.com/optimcloud/patroni:latest
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
- name: PGSSLKEY
|
|
||||||
value: /etc/ssl/private/ssl-cert-snakeoil.key
|
|
||||||
- name: PGSSLMODE
|
|
||||||
value: verify-ca
|
|
||||||
- name: PGSSLROOTCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
|
||||||
name: demo-haproxy
|
name: demo-haproxy
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: haproxy
|
io.kompose.service: haproxy
|
||||||
|
|||||||
@@ -11,5 +11,5 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: coord1-patroni-env
|
io.kompose.service: haproxy-patroni-env
|
||||||
name: patroni-env
|
name: patroni-env
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: patroni1-claim0
|
||||||
|
name: patroni1-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
||||||
@@ -2,37 +2,35 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: coord2
|
io.kompose.service: patroni1
|
||||||
name: coord2
|
name: patroni1
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
io.kompose.service: coord2
|
io.kompose.service: patroni1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/patroni-demo: "true"
|
io.kompose.network/patroni-demo: "true"
|
||||||
io.kompose.service: coord2
|
io.kompose.service: patroni1
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: ETCDCTL_ENDPOINTS
|
- name: ETCDCTL_ENDPOINTS
|
||||||
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
||||||
- name: PATRONI_CITUS_DATABASE
|
|
||||||
value: citus
|
|
||||||
- name: PATRONI_CITUS_GROUP
|
|
||||||
value: "0"
|
|
||||||
- name: PATRONI_ETCD3_HOSTS
|
- name: PATRONI_ETCD3_HOSTS
|
||||||
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
||||||
- name: PATRONI_NAME
|
- name: PATRONI_NAME
|
||||||
value: coord2
|
value: patroni1
|
||||||
- name: PATRONI_REPLICATION_PASSWORD
|
- name: PATRONI_REPLICATION_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@@ -75,18 +73,17 @@ spec:
|
|||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: PATRONI_admin_PASSWORD
|
key: PATRONI_admin_PASSWORD
|
||||||
name: patroni-env
|
name: patroni-env
|
||||||
- name: PGSSLCERT
|
image: harbor.io.optimcloud.com/optimcloud/patroni:latest
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
name: demo-patroni1
|
||||||
- name: PGSSLKEY
|
|
||||||
value: /etc/ssl/private/ssl-cert-snakeoil.key
|
|
||||||
- name: PGSSLMODE
|
|
||||||
value: verify-ca
|
|
||||||
- name: PGSSLROOTCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
|
||||||
name: demo-coord2
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
hostname: coord2
|
volumeMounts:
|
||||||
|
- mountPath: /docker-entrypoint-initdb.d/init-db.sh
|
||||||
|
name: patroni1-claim0
|
||||||
|
hostname: patroni1
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: patroni1-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: patroni1-claim0
|
||||||
@@ -2,15 +2,15 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: coord2
|
io.kompose.service: patroni1
|
||||||
name: coord2
|
name: patroni1
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "5432"
|
- name: "5432"
|
||||||
port: 5432
|
port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
selector:
|
selector:
|
||||||
io.kompose.service: coord2
|
io.kompose.service: patroni1
|
||||||
@@ -2,37 +2,33 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: coord3
|
io.kompose.service: patroni2
|
||||||
name: coord3
|
name: patroni2
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
io.kompose.service: coord3
|
io.kompose.service: patroni2
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/patroni-demo: "true"
|
io.kompose.network/patroni-demo: "true"
|
||||||
io.kompose.service: coord3
|
io.kompose.service: patroni2
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: ETCDCTL_ENDPOINTS
|
- name: ETCDCTL_ENDPOINTS
|
||||||
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
||||||
- name: PATRONI_CITUS_DATABASE
|
|
||||||
value: citus
|
|
||||||
- name: PATRONI_CITUS_GROUP
|
|
||||||
value: "0"
|
|
||||||
- name: PATRONI_ETCD3_HOSTS
|
- name: PATRONI_ETCD3_HOSTS
|
||||||
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
||||||
- name: PATRONI_NAME
|
- name: PATRONI_NAME
|
||||||
value: coord3
|
value: patroni2
|
||||||
- name: PATRONI_REPLICATION_PASSWORD
|
- name: PATRONI_REPLICATION_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@@ -75,18 +71,10 @@ spec:
|
|||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: PATRONI_admin_PASSWORD
|
key: PATRONI_admin_PASSWORD
|
||||||
name: patroni-env
|
name: patroni-env
|
||||||
- name: PGSSLCERT
|
image: harbor.io.optimcloud.com/optimcloud/patroni:latest
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
name: demo-patroni2
|
||||||
- name: PGSSLKEY
|
|
||||||
value: /etc/ssl/private/ssl-cert-snakeoil.key
|
|
||||||
- name: PGSSLMODE
|
|
||||||
value: verify-ca
|
|
||||||
- name: PGSSLROOTCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
|
||||||
name: demo-coord3
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
hostname: coord3
|
hostname: patroni2
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
@@ -2,15 +2,15 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: coord3
|
io.kompose.service: patroni2
|
||||||
name: coord3
|
name: patroni2
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "5432"
|
- name: "5432"
|
||||||
port: 5432
|
port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
selector:
|
selector:
|
||||||
io.kompose.service: coord3
|
io.kompose.service: patroni2
|
||||||
@@ -2,37 +2,33 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: coord1
|
io.kompose.service: patroni3
|
||||||
name: coord1
|
name: patroni3
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
io.kompose.service: coord1
|
io.kompose.service: patroni3
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/patroni-demo: "true"
|
io.kompose.network/patroni-demo: "true"
|
||||||
io.kompose.service: coord1
|
io.kompose.service: patroni3
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: ETCDCTL_ENDPOINTS
|
- name: ETCDCTL_ENDPOINTS
|
||||||
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
||||||
- name: PATRONI_CITUS_DATABASE
|
|
||||||
value: citus
|
|
||||||
- name: PATRONI_CITUS_GROUP
|
|
||||||
value: "0"
|
|
||||||
- name: PATRONI_ETCD3_HOSTS
|
- name: PATRONI_ETCD3_HOSTS
|
||||||
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
||||||
- name: PATRONI_NAME
|
- name: PATRONI_NAME
|
||||||
value: coord1
|
value: patroni3
|
||||||
- name: PATRONI_REPLICATION_PASSWORD
|
- name: PATRONI_REPLICATION_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@@ -75,18 +71,10 @@ spec:
|
|||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: PATRONI_admin_PASSWORD
|
key: PATRONI_admin_PASSWORD
|
||||||
name: patroni-env
|
name: patroni-env
|
||||||
- name: PGSSLCERT
|
image: harbor.io.optimcloud.com/optimcloud/patroni:latest
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
name: demo-patroni3
|
||||||
- name: PGSSLKEY
|
|
||||||
value: /etc/ssl/private/ssl-cert-snakeoil.key
|
|
||||||
- name: PGSSLMODE
|
|
||||||
value: verify-ca
|
|
||||||
- name: PGSSLROOTCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
|
||||||
name: demo-coord1
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
hostname: coord1
|
hostname: patroni3
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
@@ -2,15 +2,15 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: coord1
|
io.kompose.service: patroni3
|
||||||
name: coord1
|
name: patroni3
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "5432"
|
- name: "5432"
|
||||||
port: 5432
|
port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
selector:
|
selector:
|
||||||
io.kompose.service: coord1
|
io.kompose.service: patroni3
|
||||||
34
utils/helm/cluster/templates/redis-deployment.yaml
Normal file
34
utils/helm/cluster/templates/redis-deployment.yaml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: redis
|
||||||
|
name: redis
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: redis
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
|
labels:
|
||||||
|
io.kompose.network/patroni-default: "true"
|
||||||
|
io.kompose.service: redis
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: ALLOW_EMPTY_PASSWORD
|
||||||
|
value: "yes"
|
||||||
|
image: bitnami/redis:latest
|
||||||
|
name: redis
|
||||||
|
ports:
|
||||||
|
- containerPort: 6379
|
||||||
|
hostPort: 6379
|
||||||
|
protocol: TCP
|
||||||
|
restartPolicy: Always
|
||||||
16
utils/helm/cluster/templates/redis-service.yaml
Normal file
16
utils/helm/cluster/templates/redis-service.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose -f docker-compose.yml convert -c
|
||||||
|
kompose.version: 1.33.0 (3ce457399)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: redis
|
||||||
|
name: redis
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "6379"
|
||||||
|
port: 6379
|
||||||
|
targetPort: 6379
|
||||||
|
selector:
|
||||||
|
io.kompose.service: redis
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: work1-1
|
|
||||||
name: work1-1
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: work1-1
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-demo: "true"
|
|
||||||
io.kompose.service: work1-1
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: ETCDCTL_ENDPOINTS
|
|
||||||
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
|
||||||
- name: PATRONI_CITUS_DATABASE
|
|
||||||
value: citus
|
|
||||||
- name: PATRONI_CITUS_GROUP
|
|
||||||
value: "1"
|
|
||||||
- name: PATRONI_ETCD3_HOSTS
|
|
||||||
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
|
||||||
- name: PATRONI_NAME
|
|
||||||
value: work1-1
|
|
||||||
- name: PATRONI_REPLICATION_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_REPLICATION_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_REPLICATION_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_REPLICATION_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_RESTAPI_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_RESTAPI_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_RESTAPI_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_RESTAPI_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_SCOPE
|
|
||||||
value: demo
|
|
||||||
- name: PATRONI_SUPERUSER_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_SUPERUSER_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_SUPERUSER_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_SUPERUSER_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_admin_OPTIONS
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_admin_OPTIONS
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_admin_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_admin_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PGSSLCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
- name: PGSSLKEY
|
|
||||||
value: /etc/ssl/private/ssl-cert-snakeoil.key
|
|
||||||
- name: PGSSLMODE
|
|
||||||
value: verify-ca
|
|
||||||
- name: PGSSLROOTCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
|
||||||
name: demo-work1-1
|
|
||||||
ports:
|
|
||||||
- containerPort: 5432
|
|
||||||
protocol: TCP
|
|
||||||
hostname: work1-1
|
|
||||||
restartPolicy: Always
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: work1-1
|
|
||||||
name: work1-1
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "5432"
|
|
||||||
port: 5432
|
|
||||||
targetPort: 5432
|
|
||||||
selector:
|
|
||||||
io.kompose.service: work1-1
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: work1-2
|
|
||||||
name: work1-2
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: work1-2
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-demo: "true"
|
|
||||||
io.kompose.service: work1-2
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: ETCDCTL_ENDPOINTS
|
|
||||||
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
|
||||||
- name: PATRONI_CITUS_DATABASE
|
|
||||||
value: citus
|
|
||||||
- name: PATRONI_CITUS_GROUP
|
|
||||||
value: "1"
|
|
||||||
- name: PATRONI_ETCD3_HOSTS
|
|
||||||
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
|
||||||
- name: PATRONI_NAME
|
|
||||||
value: work1-2
|
|
||||||
- name: PATRONI_REPLICATION_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_REPLICATION_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_REPLICATION_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_REPLICATION_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_RESTAPI_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_RESTAPI_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_RESTAPI_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_RESTAPI_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_SCOPE
|
|
||||||
value: demo
|
|
||||||
- name: PATRONI_SUPERUSER_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_SUPERUSER_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_SUPERUSER_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_SUPERUSER_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_admin_OPTIONS
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_admin_OPTIONS
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_admin_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_admin_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PGSSLCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
- name: PGSSLKEY
|
|
||||||
value: /etc/ssl/private/ssl-cert-snakeoil.key
|
|
||||||
- name: PGSSLMODE
|
|
||||||
value: verify-ca
|
|
||||||
- name: PGSSLROOTCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
|
||||||
name: demo-work1-2
|
|
||||||
ports:
|
|
||||||
- containerPort: 5432
|
|
||||||
protocol: TCP
|
|
||||||
hostname: work1-2
|
|
||||||
restartPolicy: Always
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: work1-2
|
|
||||||
name: work1-2
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "5432"
|
|
||||||
port: 5432
|
|
||||||
targetPort: 5432
|
|
||||||
selector:
|
|
||||||
io.kompose.service: work1-2
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: work2-1
|
|
||||||
name: work2-1
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: work2-1
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-demo: "true"
|
|
||||||
io.kompose.service: work2-1
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: ETCDCTL_ENDPOINTS
|
|
||||||
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
|
||||||
- name: PATRONI_CITUS_DATABASE
|
|
||||||
value: citus
|
|
||||||
- name: PATRONI_CITUS_GROUP
|
|
||||||
value: "2"
|
|
||||||
- name: PATRONI_ETCD3_HOSTS
|
|
||||||
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
|
||||||
- name: PATRONI_NAME
|
|
||||||
value: work2-1
|
|
||||||
- name: PATRONI_REPLICATION_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_REPLICATION_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_REPLICATION_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_REPLICATION_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_RESTAPI_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_RESTAPI_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_RESTAPI_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_RESTAPI_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_SCOPE
|
|
||||||
value: demo
|
|
||||||
- name: PATRONI_SUPERUSER_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_SUPERUSER_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_SUPERUSER_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_SUPERUSER_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_admin_OPTIONS
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_admin_OPTIONS
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_admin_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_admin_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PGSSLCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
- name: PGSSLKEY
|
|
||||||
value: /etc/ssl/private/ssl-cert-snakeoil.key
|
|
||||||
- name: PGSSLMODE
|
|
||||||
value: verify-ca
|
|
||||||
- name: PGSSLROOTCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
|
||||||
name: demo-work2-1
|
|
||||||
ports:
|
|
||||||
- containerPort: 5432
|
|
||||||
protocol: TCP
|
|
||||||
hostname: work2-1
|
|
||||||
restartPolicy: Always
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: work2-1
|
|
||||||
name: work2-1
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "5432"
|
|
||||||
port: 5432
|
|
||||||
targetPort: 5432
|
|
||||||
selector:
|
|
||||||
io.kompose.service: work2-1
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: work2-2
|
|
||||||
name: work2-2
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
io.kompose.service: work2-2
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.network/patroni-demo: "true"
|
|
||||||
io.kompose.service: work2-2
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: ETCDCTL_ENDPOINTS
|
|
||||||
value: http://etcd1:2379,http://etcd2:2379,http://etcd3:2379
|
|
||||||
- name: PATRONI_CITUS_DATABASE
|
|
||||||
value: citus
|
|
||||||
- name: PATRONI_CITUS_GROUP
|
|
||||||
value: "2"
|
|
||||||
- name: PATRONI_ETCD3_HOSTS
|
|
||||||
value: '''etcd1:2379'',''etcd2:2379'',''etcd3:2379'''
|
|
||||||
- name: PATRONI_NAME
|
|
||||||
value: work2-2
|
|
||||||
- name: PATRONI_REPLICATION_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_REPLICATION_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_REPLICATION_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_REPLICATION_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_RESTAPI_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_RESTAPI_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_RESTAPI_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_RESTAPI_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_SCOPE
|
|
||||||
value: demo
|
|
||||||
- name: PATRONI_SUPERUSER_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_SUPERUSER_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_SUPERUSER_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_SUPERUSER_USERNAME
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_admin_OPTIONS
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_admin_OPTIONS
|
|
||||||
name: patroni-env
|
|
||||||
- name: PATRONI_admin_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: PATRONI_admin_PASSWORD
|
|
||||||
name: patroni-env
|
|
||||||
- name: PGSSLCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
- name: PGSSLKEY
|
|
||||||
value: /etc/ssl/private/ssl-cert-snakeoil.key
|
|
||||||
- name: PGSSLMODE
|
|
||||||
value: verify-ca
|
|
||||||
- name: PGSSLROOTCERT
|
|
||||||
value: /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
||||||
image: harbor.io.optimcloud.com/optimcloud/patroni-citus:latest
|
|
||||||
name: demo-work2-2
|
|
||||||
ports:
|
|
||||||
- containerPort: 5432
|
|
||||||
protocol: TCP
|
|
||||||
hostname: work2-2
|
|
||||||
restartPolicy: Always
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kompose.cmd: kompose convert -f docker-compose-citus.yml -c -o patroni-compose
|
|
||||||
kompose.version: 1.33.0 (3ce457399)
|
|
||||||
labels:
|
|
||||||
io.kompose.service: work2-2
|
|
||||||
name: work2-2
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: "5432"
|
|
||||||
port: 5432
|
|
||||||
targetPort: 5432
|
|
||||||
selector:
|
|
||||||
io.kompose.service: work2-2
|
|
||||||
Reference in New Issue
Block a user