Skip to content

Commit

Permalink
feat: add config map for krb5.conf and odbc.ini
Browse files Browse the repository at this point in the history
add keytab

NO_DOC=internal
NO_TEST=internal
NO_CHANGELOG=internal
  • Loading branch information
Виталий Шунков committed Feb 20, 2024
1 parent 2ff7055 commit d565a8f
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 16 deletions.
47 changes: 47 additions & 0 deletions helm-charts/tarantool-cartridge/templates/cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: odbc
namespace: tarantool
data:
krb5.conf: |+
[libdefaults]
default_realm = CUD.INT
allow_weak_crypto = true
dns_lookup_kdc = false
dns_lookup_realm = false
ticket_lifetime = 86400
renew_lifetime = 604800
forwardable = true
default_tgs_enctypes = rc4-hmac
default_tkt_enctypes = rc4-hmac
permitted_enctypes = rc4-hmac
udp_preference_limit = 1
kdc_timeout = 3000
[realms]
CUD.INT = {
kdc = CUDINT217.cud.int
admin_server = CUDINT217.cud.int
}
odbc.ini: |+
[Cloudera Hive ODBC Driver 64-bit]
Driver=Cloudera Hive ODBC Driver 64-bit
Description=Hive Cloudera ODBC Driver
Host=name02.cud.int
Port=10000
Schema=default
ServiceDiscoveryMode=0
HiveServerType=2
AuthMech=1
ThriftTransport=2
UseNativeQuery=0
UID=visiology-kauth
KrbHostFQDN=cudint217.cud.int
Keytab=/tmp/key.keytab
GetTablesWithQuery=1
KrbServiceName=hive
KrbRealm=CUD.INT
KrbAuthType=0
SSL=0
2 changes: 1 addition & 1 deletion helm-charts/tarantool-cartridge/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
fsGroup: {{ $.Values.securityContext.fsGroup }}
{{- if $.Values.affinity }}
affinity:
{{ toYaml $.Values.affinity | indent 8 }}
{{ toYaml $.Values.affinity | indent 8 }}
{{- end }}
containers:
- name: "{{ $.Release.Name }}-container"
Expand Down
59 changes: 44 additions & 15 deletions helm-charts/tarantool-cartridge/values.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# Declare variables to be passed into your templates.

ClusterEnv: dev
ClusterName: tarantool-cluster
ClusterDomainName: cluster.local
TarantoolWorkDir: /var/lib/tarantool
LuaMemoryReserveMB: 4096
LuaMemoryReserveMB: 2048

persistence:
storageClassName: local-path

image:
repository: tarantool/tarantool-operator-examples-kv
tag: 0.0.4
repository: docker-public.binary.picodata.io/kirovets
tag: kube
pullPolicy: IfNotPresent

securityContext:
Expand All @@ -29,26 +27,57 @@ RoleConfig:
- RoleName: routers # ReplicaSet name
ReplicaCount: 1 # Number of replicas in each ReplicaSet
ReplicaSetCount: 1 # Number of ReplicaSets for this role(s)
DiskSize: 1Gi # Persistent Volume disk sze
CPUallocation: 0.25 # Number of vCPUs to allocate to each container
DiskSize: 16Gi # Persistent Volume disk sze
CPUallocation: 2 # Number of vCPUs to allocate to each container
MemtxMemoryMB: 256 # MB of memory to be assigned to each container
RolesToAssign:
- failover-coordinator
- vshard-router
- app.roles.router

- RoleName: storage
ReplicaCount: 2
- RoleName: exporter
ReplicaCount: 1
ReplicaSetCount: 1
DiskSize: 1Gi
CPUallocation: 0.25
MemtxMemoryMB: 256
DiskSize: 16Gi
CPUallocation: 2
MemtxMemoryMB: 1024
Volumes:
testVolume:
mountpoint: /foo
share:
mountpoint: /opt/share
type:
hostPath:
path: /mnt
path: /mnt/share
type: Directory
keytab:
mountpoint: /opt/cloudera/
type:
configMap:
name: keytab
items:
- key: keytab
path: keytab
odbc:
mountpoint: /etc/picodata/
type:
configMap:
name: odbc
items:
- key: odbc.ini
path: odbc.ini
- key: krb5.conf
path: krb5.conf
RolesToAssign:
- app.roles.exporter
- vshard-router

- RoleName: storage
ReplicaCount: 2
ReplicaSetCount: 1
DiskSize: 16Gi
CPUallocation: 2
MemtxMemoryMB: 4096
RolesToAssign:
- vshard-storage
- app.roles.storage

ingress:
Expand Down

0 comments on commit d565a8f

Please sign in to comment.