-
Notifications
You must be signed in to change notification settings - Fork 37
/
cilium.go
58 lines (52 loc) · 1.34 KB
/
cilium.go
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
package cilium
import (
"github.com/awslabs/eksdemo/pkg/application"
"github.com/awslabs/eksdemo/pkg/cmd"
"github.com/awslabs/eksdemo/pkg/installer"
"github.com/awslabs/eksdemo/pkg/template"
)
// Docs: https://docs.cilium.io/
// GitHub: https://github.com/cilium/cilium
// Helm: https://github.com/cilium/cilium/tree/master/install/kubernetes/cilium
// Repo: https://quay.io/repository/cilium/cilium
// Version: Latest is v1.12.6 (as of 01/30/23)
func NewApp() *application.Application {
app := &application.Application{
Command: cmd.Command{
Name: "cilium",
Description: "eBPF-based Networking, Observability, Security",
},
Installer: &installer.HelmInstaller{
ChartName: "cilium",
ReleaseName: "cilium",
RepositoryURL: "https://helm.cilium.io/",
ValuesTemplate: &template.TextTemplate{
Template: valuesTemplate,
},
},
}
app.Options, app.Flags = newOptions()
return app
}
const valuesTemplate = `---
image:
tag: {{ .Version }}
{{- if not .Overlay }}
cni:
chainingMode: aws-cni
{{- end }}
{{- if .Wireguard }}
encryption:
# -- Enable transparent network encryption.
enabled: true
# -- Encryption method. Can be either ipsec or wireguard.
type: wireguard
{{- end }}
{{- if not .Overlay }}
enableIPv4Masquerade: false
tunnel: disabled
{{- end }}
{{- if .Wireguard }}
l7Proxy: false
{{- end }}
`