apiVersion: apps/v1 kind: Deployment metadata: name: trino namespace: stonks-oracle labels: app: trino app.kubernetes.io/part-of: stonks-oracle spec: replicas: 1 selector: matchLabels: app: trino template: metadata: labels: app: trino spec: containers: - name: trino image: trinodb/trino:latest ports: - containerPort: 8080 volumeMounts: - name: catalog-config mountPath: /etc/trino/catalog resources: requests: cpu: 500m memory: 1Gi limits: cpu: "2" memory: 4Gi readinessProbe: httpGet: path: /v1/info port: 8080 initialDelaySeconds: 15 periodSeconds: 10 volumes: - name: catalog-config configMap: name: trino-catalog --- apiVersion: v1 kind: Service metadata: name: trino namespace: stonks-oracle spec: selector: app: trino ports: - port: 8080 targetPort: 8080 --- apiVersion: v1 kind: ConfigMap metadata: name: trino-catalog namespace: stonks-oracle data: iceberg.properties: | connector.name=iceberg iceberg.catalog.type=hive_metastore hive.metastore.uri=thrift://hive-metastore.stonks-oracle.svc.cluster.local:9083 hive.s3.endpoint=http://minio.minio-service.svc.cluster.local:80 hive.s3.path-style-access=true hive.s3.aws-access-key=changeme hive.s3.aws-secret-key=changeme lakehouse.properties: | connector.name=hive hive.metastore.uri=thrift://hive-metastore.stonks-oracle.svc.cluster.local:9083 hive.s3.endpoint=http://minio.minio-service.svc.cluster.local:80 hive.s3.path-style-access=true hive.s3.aws-access-key=changeme hive.s3.aws-secret-key=changeme hive.non-managed-table-writes-enabled=true hive.s3select-pushdown.enabled=true