-
Notifications
You must be signed in to change notification settings - Fork 5
/
catalog-template.yaml
98 lines (81 loc) · 8.04 KB
/
catalog-template.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
defaultChannel: stable
description: |
# Zncdata Stack Operator for Trino
[![Build Status](https://travis-ci.org/zncdata/trino-operator.svg?branch=main)](https://travis-ci.org/zncdata/trino-operator)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[//]: # ([![codecov](https://codecov.io/gh/zncdata/trino-operator/branch/main/graph/badge.svg)](https://codecov.io/gh/zncdata/trino-operator))
This is a Kubernetes operator to manage [Trino](https://trino.io/) ensembles.
It is part of the Stack ZncData Platform,
a curated selection of the best open source data apps like Apache Hive, Apache Druid, Trino or Apache Spark,
working together seamlessly. Based on Kubernetes, it runs everywhere.
## Quick Start
1. Install Operator Lifecycle Manager (OLM), a tool to help manage the Operators running on your cluster.
```bash
curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.26.0/install.sh | bash -s v0.26.0
```
2. First we need to prepare an OperatorGroup
```bash
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: operatorgroup
spec:
targetNamespaces:
- tmp
upgradeStrategy: Default
```
3. Start deploying our catalog
```bash
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: catalog-v0-0-1-alpha
namespace: tmp
spec:
displayName: zncdata operators
grpcPodConfig:
securityContextConfig: restricted
image: quay.io/zncdatadev/catalog:v0.0.1-alpha
publisher: zncdata.dev
sourceType: grpc
updateStrategy:
registryPoll:
interval: 60m
```
4. After completing the OperatorGroup and Catalog, you can start installing the service Subscription
```bash
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: trino-operator-v0-0-1-alpha-sub
namespace: tmp
spec:
channel: fast-v0.0
name: trino-operator
source: catalog
sourceNamespace: tmp
installPlanApproval: Automatic
startingCSV: trino-operator.v0.0.1-alpha
```
5. After install, watch your operator come up using next command.
```bash
kubectl get csv -n tmp
```
6. Install Instances of Custom Resources:
```sh
kubectl apply -f config/samples/
```
icon:
base64data: PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Mi4xIDYyLjQ1Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6I2RkMDBhMTt9LmNscy0ze2ZpbGw6I2Y5ZDhkMjt9LmNscy00e2ZpbGw6IzEwMTEwZTt9LmNscy01e2ZpbGw6I2U1ZTVlNTt9LmNscy02e2ZpbGw6IzhhY2NjZTtvcGFjaXR5OjAuMjtpc29sYXRpb246aXNvbGF0ZTt9LmNscy03e2ZpbGw6IzUxNTE1MTt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTQuMjQsNTUuMzZjLjkyLS42MS0xLjQ5LS4zOC0xLjY5LS43OWExNSwxNSwwLDAsMS0yLjgyLS41MUM4LDUzLjYyLDMuOSw1MC44NSwzLjQ3LDQ4LjI1czAtNy42NSwxLjgzLTEwLjYxQTE3LDE3LDAsMCwxLDkuNzMsMzNTNi4xNiwyNC41MSw1Ljg1LDE4LjEsNiwuMjEsMTAuMjQsMHMzLjQ5LDEwLjQ4LDIuODIsMTcuNDNhODkuNDcsODkuNDcsMCwwLDAtLjIxLDEzLjg5LDE5LjQ1LDE5LjQ1LDAsMCwxLDUuNTEtLjkyLDIxLjIsMjEuMiwwLDAsMSw0LjkuNDZTMjQuNTgsMjEs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EsMCwwLDAsMTkuMTcsMzQuMzlaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDApIi8+PHBhdGggY2xhc3M9ImNscy03IiBkPSJNMS40NCw0NmgyYTE3LjU2LDE3LjU2LDAsMCwwLC40MywyLjE2aC0xYTEuMzUsMS4zNSwwLDAsMS0xLjQ0LTEuMjVoMFY0NloiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgMCkiLz48ZWxsaXBzZSBjbGFzcz0iY2xzLTciIGN4PSIzNS43MSIgY3k9IjMwLjI5IiByeD0iMS4yIiByeT0iMS4wOCIvPjwvc3ZnPg==
mediatype: image/svg+xml
name: trino-operator
schema: olm.package
---
schema: olm.channel
package: trino-operator
name: stable
entries:
- name: trino-operator.v0.0.1
---
schema: olm.bundle
image: quay.io/zncdatadev/trino-operator-bundle:v0.0.1