Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bsctl committed Oct 22, 2024
0 parents commit 108fac2
Show file tree
Hide file tree
Showing 35 changed files with 5,561 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags: [ "v*" ]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.3.4

- name: Package Helm chart
run: helm package ./charts

- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
charts_dir: charts/calico-cni
charts_url: https://clastix.github.io/charts
owner: clastix
repository: charts
branch: gh-pages
target_dir: .
commit_username: bsctl
commit_email: [email protected]
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags: [ "v*" ]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.3.4

- name: Package Helm chart
run: helm package ./charts/calico-cni

- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
charts_dir: charts
charts_url: https://clastix.github.io/charts
owner: clastix
repository: charts
branch: gh-pages
target_dir: .
commit_username: bsctl
commit_email: [email protected]
115 changes: 115 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# calico-cni

![Version: 3.28.1](https://img.shields.io/badge/Version-3.28.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v3.28.1](https://img.shields.io/badge/AppVersion-v3.28.1-informational?style=flat-square)

This Helm chart has been created based on the reference minimalistic Calico deployment.
We do not use the Helm Chart Calico Operator provided by Tigera. This chart is based on a lightweigth Calico's configuration
manifest and it should work in most of the cases.

This chart is maintained by [Clastix Labs](https://github.com/clastix).

[Calico](https://github.com/projectcalico/calico) is a widely adopted, battle-tested open source networking and network security solution for Kubernetes.

Calico provides two major services for Cloud Native applications:

- Network connectivity between workloads.
- Network security policy enforcement between workloads.

This Helm chart has been created based on the reference minimalistic Calico deployment.
We do not use the Helm Chart Calico Operator provided by Tigera. This chart is based on a lightweigth Calico's configuration
manifest and it should work in most of the cases.

This chart is maintained by [Clastix Labs](https://github.com/clastix).

# Installing

```command
helm repo add clastix https://clastix.github.io/charts
helm repo update
helm install calico clastix/calico-cni-minimal -n kube-system
```

# Upgrading

```command
helm repo update
helm upgrade calico clastix/calico-cni-minimal -n kube-system --version <new_version>
```

## Customize the installation

There are two methods for specifying overrides of values during Chart installation: `--values` and `--set`.

The `--values` option is the preferred method because it allows you to keep your overrides in a YAML file, rather than specifying them all on the command line.
Create a copy of the YAML file `values.yaml` and add your overrides to it.

Specify your overrides file when you install the Chart:

helm upgrade calico --install -n kube-system --values myvalues.yaml

The values in your overrides file `myvalues.yaml` will override their counterparts in the Chart's values.yaml file.
Any values in `values.yaml` that weren't overridden will keep their defaults.

If you only need to make minor customizations, you can specify them on the command line by using the `--set` option. For example:

helm upgrade calico --install -n kube-system --set node.env.IP_AUTODETECTION_METHOD=kubernetes-internal-ip

Here the values you can override:

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| controllers.image.pullPolicy | string | `"IfNotPresent"` | |
| controllers.image.repository | string | `"calico/kube-controllers"` | |
| controllers.image.tag | string | `""` | |
| controllers.nodeSelector."kubernetes.io/os" | string | `"linux"` | |
| controllers.priorityClassName | string | `"system-cluster-critical"` | |
| controllers.serviceAccount.annotations | object | `{}` | |
| controllers.serviceAccount.create | bool | `true` | |
| controllers.serviceAccount.name | string | `"calico-kube-controllers"` | |
| controllers.tolerations[0].key | string | `"CriticalAddonsOnly"` | |
| controllers.tolerations[0].operator | string | `"Exists"` | |
| controllers.tolerations[1].effect | string | `"NoSchedule"` | |
| controllers.tolerations[1].key | string | `"node-role.kubernetes.io/master"` | |
| controllers.tolerations[2].effect | string | `"NoSchedule"` | |
| controllers.tolerations[2].key | string | `"node-role.kubernetes.io/control-plane"` | |
| fullnameOverride | string | `""` | |
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `""` | |
| node.env.CALICO_DISABLE_FILE_LOGGING | string | `"true"` | |
| node.env.CALICO_IPV4POOL_IPIP | string | `"Never"` | |
| node.env.CALICO_IPV4POOL_VXLAN | string | `"Never"` | |
| node.env.CALICO_IPV6POOL_VXLAN | string | `"Never"` | |
| node.env.CLUSTER_TYPE | string | `"k8s"` | |
| node.env.DATASTORE_TYPE | string | `"kubernetes"` | |
| node.env.FELIX_DEFAULTENDPOINTTOHOSTACTION | string | `"ACCEPT"` | |
| node.env.FELIX_HEALTHENABLED | string | `"true"` | |
| node.env.FELIX_IPV6SUPPORT | string | `"false"` | |
| node.env.IP | string | `"autodetect"` | |
| node.env.WAIT_FOR_DATASTORE | string | `"true"` | |
| node.hostNetwork | bool | `true` | |
| node.image.pullPolicy | string | `"IfNotPresent"` | |
| node.image.repository | string | `"calico/node"` | |
| node.image.tag | string | `""` | |
| node.nodeSelector."kubernetes.io/os" | string | `"linux"` | |
| node.priorityClassName | string | `"system-node-critical"` | |
| node.serviceAccount.annotations | object | `{}` | |
| node.serviceAccount.create | bool | `true` | |
| node.serviceAccount.name | string | `"calico-node"` | |
| node.tolerations[0].effect | string | `"NoSchedule"` | |
| node.tolerations[0].operator | string | `"Exists"` | |
| node.tolerations[1].key | string | `"CriticalAddonsOnly"` | |
| node.tolerations[1].operator | string | `"Exists"` | |
| node.tolerations[2].effect | string | `"NoExecute"` | |
| node.tolerations[2].operator | string | `"Exists"` | |

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| Clastix Labs | <[email protected]> | |

## Source Code

* <https://github.com/clastix/calico-cni-minimal>
60 changes: 60 additions & 0 deletions README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}

{{ template "chart.badgesSection" . }}

{{ template "chart.description" . }}

[Calico](https://github.com/projectcalico/calico) is a widely adopted, battle-tested open source networking and network security solution for Kubernetes.

Calico provides two major services for Cloud Native applications:

- Network connectivity between workloads.
- Network security policy enforcement between workloads.

This Helm chart has been created based on the reference minimalistic Calico deployment.
We do not use the Helm Chart Calico Operator provided by Tigera. This chart is based on a lightweigth Calico's configuration
manifest and it should work in most of the cases.

This chart is maintained by [Clastix Labs](https://github.com/clastix).

# Installing

```command
helm repo add clastix https://clastix.github.io/charts
helm repo update
helm install calico clastix/calico-cni-minimal -n kube-system
```

# Upgrading

```command
helm repo update
helm upgrade calico clastix/calico-cni-minimal -n kube-system --version <new_version>
```

## Customize the installation

There are two methods for specifying overrides of values during Chart installation: `--values` and `--set`.

The `--values` option is the preferred method because it allows you to keep your overrides in a YAML file, rather than specifying them all on the command line.
Create a copy of the YAML file `values.yaml` and add your overrides to it.

Specify your overrides file when you install the Chart:

helm upgrade calico --install -n kube-system --values myvalues.yaml

The values in your overrides file `myvalues.yaml` will override their counterparts in the Chart's values.yaml file.
Any values in `values.yaml` that weren't overridden will keep their defaults.

If you only need to make minor customizations, you can specify them on the command line by using the `--set` option. For example:

helm upgrade calico --install -n kube-system --set node.env.IP_AUTODETECTION_METHOD=kubernetes-internal-ip

Here the values you can override:

{{ template "chart.valuesSection" . }}

{{ template "chart.maintainersSection" . }}

{{ template "chart.sourcesSection" . }}
23 changes: 23 additions & 0 deletions charts/calico-cni/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
16 changes: 16 additions & 0 deletions charts/calico-cni/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v2
name: calico-cni
description: |
This Helm chart has been created based on the reference minimalistic Calico deployment.
We do not use the Helm Chart Calico Operator provided by Tigera. This chart is based on a lightweigth Calico's configuration
manifest and it should work in most of the cases.
This chart is maintained by [Clastix Labs](https://github.com/clastix).
type: application
version: 3.28.1
appVersion: v3.28.1
home: https://github.com/clastix/calico-cni-minimal
sources: ["https://github.com/clastix/calico-cni-minimal"]
maintainers:
- name: Clastix Labs
email: [email protected]
Loading

0 comments on commit 108fac2

Please sign in to comment.