Skip to content

Commit

Permalink
added README for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
stania committed Mar 28, 2024
1 parent 906a702 commit 923864a
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Sonar Sentry DaemonSet Helm Chart

This Helm chart deploys the Sonar Sentry DaemonSet on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.

## Prerequisites

- Kubernetes 1.12+
- Helm 3.1.0

## Installing the Chart

To install the chart with the release name `SITENAME-sentry`:

```bash
helm repo add logpresso https://lab.logpresso.com/sonar-sentry-daemonset
helm repo update
helm install SITENAME-sentry logpresso/sonar-sentry-daemonset

curl -sSL https://lab.logpresso.com/sonar-sentry-daemonset/create-secrets.sh | bash
```


## Uninstalling the Chart

To uninstall/delete the `my-release` deployment:

```bash
helm delete my-release
```

This command removes all the Kubernetes components associated with the chart and deletes the release.

## Parameters

| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `serviceAccount.create` | Specifies whether a service account should be created | `true` |
| `serviceAccount.name` | The name of the service account to use | `""` |
| `podAnnotations` | Additional annotations to add to the pod | `{}` |
| `podLabels` | Additional labels to add to the pod | `{}` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `affinity` | Map of node/pod affinities | `{}` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

```bash
helm install my-release logpresso/sonar-sentry-daemonset --set image.pullPolicy=Always
```

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

```bash
helm install my-release logpresso/sonar-sentry-daemonset -f values.yaml
```
20 changes: 20 additions & 0 deletions create-secrets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# create-secrets.sh 및 secrets.yaml.tmpl 다운로드
curl -O https://lab.logpresso.com/sonar-sentry-daemonset/secrets.yaml.tmpl

SENTRY_AUTH_TOKEN=`tr -dc a-z0-9 </dev/urandom | head -c 4`-`tr -dc a-z0-9 </dev/urandom | head -c 4`
echo -n "Please enter your Sonar API Key: "
read -s SONAR_API_KEY

echo

cat secrets.yaml.tmpl > secrets.yaml
echo -n " sentry-auth-token: " >> secrets.yaml
echo $SENTRY_AUTH_TOKEN | base64 >> secrets.yaml
echo -n " sonar-api-key: " >> secrets.yaml
echo $SONAR_API_KEY | base64 >> secrets.yaml

kubectl apply -f secrets.yaml

rm secrets.yaml
6 changes: 6 additions & 0 deletions secrets.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Secret
metadata:
name: sentry-secrets
type: Opaque
data:

0 comments on commit 923864a

Please sign in to comment.