Skip to content

Commit

Permalink
[sc-80763]: updates from migration
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens committed Feb 26, 2024
1 parent 6a98a14 commit e0942e0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 270 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/cron-sync-core.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/cron-sync-lts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:

- id: get-fb-release
run: |
curl -sSfl -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/calyptia/calyptia-fluent-bit/releases/latest
LATEST_RELEASE_TAG=$(curl -sSfl -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/calyptia/calyptia-fluent-bit/releases/latest|jq -r .tag_name)
curl -sSfl -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/chronosphereio/calyptia-calyptia-fluent-bit/releases/latest
LATEST_RELEASE_TAG=$(curl -sSfl -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/chronosphereio/calyptia-calyptia-fluent-bit/releases/latest|jq -r .tag_name)
echo "Found tag for latest release: $LATEST_RELEASE_TAG"
echo "tag=$LATEST_RELEASE_TAG" >> $GITHUB_OUTPUT
shell: bash
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@ jobs:
- Created by ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- Auto-generated by create-pull-request: https://github.com/peter-evans/create-pull-request
draft: false

- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
shell: bash
79 changes: 0 additions & 79 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,82 +24,3 @@ To uninstall the chart:
```shell
helm delete my-<chart-name>
```

## Current supported charts

### Calyptia-core

First, get a project token from [Calyptia Cloud](https://cloud.calyptia.com/)
To install a calyptia-core instance on the default namespace, run with:

```shell
helm install calyptia-core calyptia/core --set project_token=<PROJECT TOKEN>
```

YAML-only install

Calyptia Core can be installed without Helm as well using equivalent YAML.

The template YAML is auto-generated on each release for you as [`install-core.yaml.tmpl`](./install-core.yaml.tmpl).
It requires the definition of the following environment variables:

* `PROJECT_TOKEN` - the Calyptia Core token to use.
* `CORE_INSTANCE_NAME` - the name of the Calyptia Core instance to create.
* `CORE_INSTANCE_TAGS` - a comma-separated list of tags to add to the Calyptia Core instance.

With these variables defined we can then use substitution in the YAML like so:

```shell
$ export PROJECT_TOKEN=XXX
$ export CORE_INSTANCE_TAGS=test
$ export CORE_INSTANCE_NAME=test-instance
$ curl -sSfL https://raw.githubusercontent.com/calyptia/charts/master/install-core.yaml.tmpl | envsubst '$PROJECT_TOKEN,$CORE_INSTANCE_TAGS,$CORE_INSTANCE_NAME' | kubectl apply -f -
serviceaccount/calyptia-core created
clusterrole.rbac.authorization.k8s.io/calyptia-core created
clusterrolebinding.rbac.authorization.k8s.io/calyptia-core created
deployment.apps/calyptia-core created
```

In the example above we also show how you can set the Calyptia Core instance name (if not present then it will be auto-generated) and the Calyptia Core instance tags.

**The recommendation would always be to download and verify directly without applying initially for security purposes.**

An all-in-one command to do it is therefore (replacing `XXX` with your token, and changing the name/tags as appropriate) on Linux or compatible platforms with `envsubst` available:

```shell
export PROJECT_TOKEN=XXX;export CORE_INSTANCE_TAGS=onelineinstall;export CORE_INSTANCE_NAME=$HOSTNAME;curl -sSfL https://raw.githubusercontent.com/calyptia/charts/master/install-core.yaml.tmpl | envsubst '$PROJECT_TOKEN,$CORE_INSTANCE_TAGS,$CORE_INSTANCE_NAME' | kubectl apply -f -
```

For Windows or other platforms without envsubst available the YAML template can be downloaded and the PROJECT_TOKEN substituted manually or in some other fashion.

#### Enable specific functionality on Calyptia Core

To enable the experimental cluster logging functionality:

```shell
helm install --set-string cluster_logging=true --set project_token=<PROJECT TOKEN>
```

To add tags to the calyptia-core instance:

```shell
helm install --set-string core_instance_tags='one\,two' --set project_token=<PROJECT TOKEN>
```

Note that a valid project token is required.

#### Install core-operator with core-instance

core-operator

```shell
helm install core-operator calyptia/core-operator
```

core-instance

```shell
helm install core-inst calyptia/core-instance --set coreInstance=<your-core-instance> --set cloudToken=<your-token>
```

Token can be retrieved from the [Core UI](https://core.calyptia.com) under "Settings"
126 changes: 0 additions & 126 deletions install-core.yaml.tmpl

This file was deleted.

0 comments on commit e0942e0

Please sign in to comment.