-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathcman-sidb-filemode.yaml
More file actions
79 lines (78 loc) · 2.44 KB
/
Copy pathcman-sidb-filemode.yaml
File metadata and controls
79 lines (78 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Scenario: one CMAN replica using a complete, user-managed cman.ora file.
#
# Focused SIDB example. Canonical copy:
# config/samples/trafficmanager/cman-sidb-filemode.yaml
# Also see:
# Pattern guide: docs/trafficmanager/README.md#choosing-a-cman-configuration-pattern
# Sample index: docs/trafficmanager/samples/README.md
# Canonical multi-backend file-mode template:
# config/samples/trafficmanager/cman-sidb-peer-filemode.yaml
# Canonical single-backend file-mode template:
# config/samples/trafficmanager/cman-sidb-filemode.yaml
#
apiVersion: v1
kind: ConfigMap
metadata:
name: cman-sidb-filemode-config
namespace: default
data:
cman.ora: |
######################################################################
# CMAN file-mode example. File mode copies this file as-is.
######################################################################
CMAN_cman-sidb.default.svc.cluster.local =
(configuration=
(address=(protocol=tcp)(host=cman-sidb.default.svc.cluster.local)(port=1521))
(parameter_list =
(connection_statistics=yes)
(log_directory=/u01/app/oracle/product/23ai/client_1/network/log)
(log_level=user)
(trace_directory=/u01/app/oracle/product/23ai/client_1/network/trace)
(trace_level=user)
(valid_node_checking_registration=on)
(registration_invited_nodes=*)
)
(rule_list=
(rule=
(src=*)(dst=*)(srv=*)(act=accept)
(action_list=(aut=off)(moct=0)(mct=0)(mit=0)(conn_stats=on))
)
)
)
---
apiVersion: network.oracle.com/v4
kind: TrafficManager
metadata:
name: cman-sidb
namespace: default
spec:
type: cman
runtime:
image: "<cman-container-image>"
imagePullPolicy: Always
replicas: 1
service:
internal:
enabled: true
ports:
- name: cman
port: 1521
targetPort: 1521
external:
enabled: true
serviceType: LoadBalancer
externalTrafficPolicy: Local
annotations:
oci.oraclecloud.com/load-balancer-type: "nlb"
oci-network-load-balancer.oraclecloud.com/internal: "true"
oci-network-load-balancer.oraclecloud.com/is-preserve-source: "false"
oci-network-load-balancer.oraclecloud.com/subnet: "<subnet-ocid>"
ports:
- name: cman
port: 1521
targetPort: 1521
cman:
configSource:
configMapRef:
name: cman-sidb-filemode-config
key: cman.ora