Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc6457aa

Browse files
committed
Add the basics for Helm installation
0 parents  commitc6457aa

File tree

16 files changed

+2260
-0
lines changed

16 files changed

+2260
-0
lines changed

‎.github/actions/ci.yaml‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name:ci
2+
3+
on:
4+
push:
5+
6+
pull_request:
7+
8+
workflow_dispatch:
9+
10+
permissions:
11+
actions:none
12+
checks:none
13+
contents:read
14+
deployments:none
15+
issues:none
16+
packages:none
17+
pull-requests:none
18+
repository-projects:none
19+
security-events:none
20+
statuses:none
21+
22+
# Cancel in-progress runs for pull requests when developers push
23+
# additional changes
24+
concurrency:
25+
group:${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress:${{ github.event_name == 'pull_request' }}
27+
28+
jobs:
29+
test:
30+
runs-on:ubuntu-latest
31+
steps:
32+
-name:Checkout
33+
uses:actions/checkout@v3
34+
35+
-name:Echo Go Cache Paths
36+
id:go-cache-paths
37+
run:|
38+
echo "GOCACHE=$(go env GOCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
39+
echo "GOMODCACHE=$(go env GOMODCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
40+
41+
-name:Go Build Cache
42+
uses:actions/cache@v3
43+
with:
44+
path:${{ steps.go-cache-paths.outputs.GOCACHE }}
45+
key:${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
46+
47+
# Install Go!
48+
-uses:actions/setup-go@v3
49+
with:
50+
go-version:"~1.20"
51+
52+
-name:Test
53+
run:go test ./...

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coder-logstream-kube
2+
build

‎.helmignore‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.vscode
2+
*.mod
3+
*.sum
4+
*.go
5+
*.md
6+
scripts/
7+
build/
8+
.github/
9+
.git/
10+
.gitignore
11+
.helmignore

‎Chart.yaml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion:v2
2+
name:coder-logstream-kube
3+
description:Stream Kubernetes Pod events to the Coder startup logs
4+
home:https://github.com/coder/coder-logstream-kube
5+
6+
# version and appVersion are injected at release and will always be shown as
7+
# 0.1.0 in the repository.
8+
#
9+
# If you're installing the Helm chart directly from git it will have this
10+
# version, which means the auto-generated image URI will be invalid. You can set
11+
# "image.tag" to the desired tag manually.
12+
type:application
13+
version:"0.1.0"
14+
appVersion:"0.1.0"
15+
16+
# This matches the required version from Coder.
17+
kubeVersion:">= 1.19.0-0"
18+
19+
keywords:
20+
-coder
21+
-terraform
22+
sources:
23+
-https://github.com/coder/coder-logstream-kube/tree/main
24+
icon:https://helm.coder.com/coder_logo_black.png
25+
maintainers:
26+
-name:Coder Technologies, Inc.
27+
email:support@coder.com
28+
url:https://coder.com/contact

‎README.md‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#coder-logstream-kube
2+
3+
[![discord](https://img.shields.io/discord/747933592273027093?label=discord)](https://discord.gg/coder)
4+
[![release](https://img.shields.io/github/v/tag/coder/coder-logstream-kube)](https://github.com/coder/envbuilder/pkgs/container/coder-logstream-kube)
5+
[![godoc](https://pkg.go.dev/badge/github.com/coder/coder-logstream-kube.svg)](https://pkg.go.dev/github.com/coder/coder-logstream-kube)
6+
[![license](https://img.shields.io/github/license/coder/coder-logstream-kube)](./LICENSE)
7+
8+
Stream Kubernetes Pod events to the Coder startup logs.
9+
10+
- Easily determine the reason for a pod provision failure, or why a pod is stuck in a pending state.
11+
- Visibility into when pods are OOMKilled, or when they are evicted.
12+
- Filter by namespace, field selector, and label selector to reduce Kubernetes API load.
13+
14+
![Log Stream](./scripts/demo.png)
15+
16+
##Usage
17+
18+
Apply the Helm chart to start streaming logs into your Coder instance:
19+
20+
```console
21+
helm repo add coder-v2 https://helm.coder.com/v2
22+
helm install coder-logstream-kube coder-v2/coder-logstream-kube \
23+
--namespace coder \
24+
--set url=<your-coder-url>
25+
```
26+
27+
>*Note*
28+
>For additional customization (like customizing the image, pull secrets, annotations, etc.), you can use the
29+
>[values.yaml](https://github.com/coder/coder-logstream-kube/blob/main/values.yaml) file directly.
30+
31+
Ensure your Coder template is using a`kubernetes_deployment` resource with the`wait_for_rollout` property set to false.
32+
33+
```hcl
34+
resource "kubernetes_deployment" "hello_world" {
35+
wait_for_rollout = false
36+
...
37+
}
38+
```
39+
40+
This will ensure all pod events will be sent during initialization and startup.

‎go.mod‎

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
modulegithub.com/coder/coder-kubernetes-logs
2+
3+
go1.20
4+
5+
// Required to import the codersdk!
6+
replacetailscale.com =>github.com/coder/tailscalev1.1.1-0.20230418202606-ed9307cf1b22
7+
8+
require (
9+
cdr.dev/slogv1.5.3
10+
github.com/coder/coderv0.23.6-0.20230522192129-95839109db09
11+
github.com/coder/retryv1.3.1-0.20230210155434-e90a2e1e091d
12+
github.com/spf13/cobrav1.7.0
13+
github.com/stretchr/testifyv1.8.2
14+
github.com/zeebo/assertv1.3.0
15+
k8s.io/apiv0.27.1
16+
k8s.io/apimachineryv0.27.1
17+
k8s.io/client-gov0.27.1
18+
)
19+
20+
require (
21+
cloud.google.com/go/computev1.19.0// indirect
22+
cloud.google.com/go/compute/metadatav0.2.3// indirect
23+
filippo.io/edwards25519v1.0.0-rc.1// indirect
24+
github.com/Microsoft/go-winiov0.6.0// indirect
25+
github.com/OneOfOne/xxhashv1.2.8// indirect
26+
github.com/agext/levenshteinv1.2.3// indirect
27+
github.com/agnivade/levenshteinv1.1.1// indirect
28+
github.com/akutz/memconnv0.1.0// indirect
29+
github.com/alexbrainman/sspiv0.0.0-20210105120005-909beea2cc74// indirect
30+
github.com/ammario/tlruv0.3.0// indirect
31+
github.com/apparentlymart/go-textseg/v13v13.0.0// indirect
32+
github.com/armon/go-radixv1.0.0// indirect
33+
github.com/aymanbagabas/go-osc52/v2v2.0.1// indirect
34+
github.com/beorn7/perksv1.0.1// indirect
35+
github.com/cenkalti/backoff/v4v4.2.0// indirect
36+
github.com/cespare/xxhash/v2v2.2.0// indirect
37+
github.com/charmbracelet/lipglossv0.7.1// indirect
38+
github.com/coder/terraform-provider-coderv0.6.23// indirect
39+
github.com/coreos/go-iptablesv0.6.0// indirect
40+
github.com/coreos/go-oidc/v3v3.6.0// indirect
41+
github.com/davecgh/go-spewv1.1.1// indirect
42+
github.com/emicklei/go-restful/v3v3.9.0// indirect
43+
github.com/evanphx/json-patchv4.12.0+incompatible// indirect
44+
github.com/fatih/colorv1.15.0// indirect
45+
github.com/fxamacker/cbor/v2v2.4.0// indirect
46+
github.com/ghodss/yamlv1.0.0// indirect
47+
github.com/go-chi/chi/v5v5.0.8// indirect
48+
github.com/go-jose/go-jose/v3v3.0.0// indirect
49+
github.com/go-logr/logrv1.2.4// indirect
50+
github.com/go-logr/stdrv1.2.2// indirect
51+
github.com/go-ole/go-olev1.2.6// indirect
52+
github.com/go-openapi/jsonpointerv0.19.6// indirect
53+
github.com/go-openapi/jsonreferencev0.20.1// indirect
54+
github.com/go-openapi/swagv0.22.3// indirect
55+
github.com/gobwas/globv0.2.3// indirect
56+
github.com/godbus/dbus/v5v5.1.0// indirect
57+
github.com/gogo/protobufv1.3.2// indirect
58+
github.com/golang/glogv1.0.0// indirect
59+
github.com/golang/groupcachev0.0.0-20210331224755-41bb18bfe9da// indirect
60+
github.com/golang/protobufv1.5.3// indirect
61+
github.com/google/btreev1.1.2// indirect
62+
github.com/google/gnosticv0.5.7-v3refs// indirect
63+
github.com/google/go-cmpv0.5.9// indirect
64+
github.com/google/gofuzzv1.1.0// indirect
65+
github.com/google/uuidv1.3.0// indirect
66+
github.com/grpc-ecosystem/grpc-gateway/v2v2.15.1// indirect
67+
github.com/hashicorp/errwrapv1.1.0// indirect
68+
github.com/hashicorp/go-ctyv1.4.1-0.20200414143053-d3edf31b6320// indirect
69+
github.com/hashicorp/go-hclogv1.2.1// indirect
70+
github.com/hashicorp/go-multierrorv1.1.1// indirect
71+
github.com/hashicorp/go-uuidv1.0.3// indirect
72+
github.com/hashicorp/go-versionv1.6.0// indirect
73+
github.com/hashicorp/golang-lru/v2v2.0.1// indirect
74+
github.com/hashicorp/hcl/v2v2.14.0// indirect
75+
github.com/hashicorp/logutilsv1.0.0// indirect
76+
github.com/hashicorp/terraform-plugin-gov0.12.0// indirect
77+
github.com/hashicorp/terraform-plugin-logv0.7.0// indirect
78+
github.com/hashicorp/terraform-plugin-sdk/v2v2.20.0// indirect
79+
github.com/hashicorp/yamuxv0.0.0-20220718163420-dd80a7ee44ce// indirect
80+
github.com/hdevalence/ed25519consensusv0.0.0-20220222234857-c00d1f31bab3// indirect
81+
github.com/illarion/gonotifyv1.0.1// indirect
82+
github.com/imdario/mergov0.3.13// indirect
83+
github.com/inconshreveable/mousetrapv1.1.0// indirect
84+
github.com/insomniacslk/dhcpv0.0.0-20221215072855-de60144f33f8// indirect
85+
github.com/jmoiron/sqlxv1.3.5// indirect
86+
github.com/josharian/internv1.0.0// indirect
87+
github.com/josharian/nativev1.1.1-0.20230202152459-5c7d0dd6ab86// indirect
88+
github.com/jsimonetti/rtnetlinkv1.1.2-0.20220408201609-d380b505068b// indirect
89+
github.com/json-iterator/gov1.1.12// indirect
90+
github.com/klauspost/compressv1.16.3// indirect
91+
github.com/kortschak/wolv0.0.0-20200729010619-da482cc4850a// indirect
92+
github.com/lib/pqv1.10.6// indirect
93+
github.com/lucasb-eyer/go-colorfulv1.2.0// indirect
94+
github.com/mailru/easyjsonv0.7.7// indirect
95+
github.com/mattn/go-colorablev0.1.13// indirect
96+
github.com/mattn/go-isattyv0.0.18// indirect
97+
github.com/mattn/go-runewidthv0.0.14// indirect
98+
github.com/matttproud/golang_protobuf_extensionsv1.0.4// indirect
99+
github.com/mdlayher/genetlinkv1.2.0// indirect
100+
github.com/mdlayher/netlinkv1.6.2// indirect
101+
github.com/mdlayher/sdnotifyv1.0.0// indirect
102+
github.com/mdlayher/socketv0.2.3// indirect
103+
github.com/mitchellh/copystructurev1.2.0// indirect
104+
github.com/mitchellh/go-psv1.0.0// indirect
105+
github.com/mitchellh/go-testing-interfacev1.14.1// indirect
106+
github.com/mitchellh/go-wordwrapv1.0.1// indirect
107+
github.com/mitchellh/mapstructurev1.5.0// indirect
108+
github.com/mitchellh/reflectwalkv1.0.2// indirect
109+
github.com/modern-go/concurrentv0.0.0-20180306012644-bacd9c7ef1dd// indirect
110+
github.com/modern-go/reflect2v1.0.2// indirect
111+
github.com/muesli/reflowv0.3.0// indirect
112+
github.com/muesli/termenvv0.15.1// indirect
113+
github.com/munnerz/goautonegv0.0.0-20191010083416-a7dc8b61c822// indirect
114+
github.com/open-policy-agent/opav0.51.0// indirect
115+
github.com/pkg/errorsv0.9.1// indirect
116+
github.com/pmezard/go-difflibv1.0.0// indirect
117+
github.com/prometheus/client_golangv1.14.0// indirect
118+
github.com/prometheus/client_modelv0.3.0// indirect
119+
github.com/prometheus/commonv0.40.0// indirect
120+
github.com/prometheus/procfsv0.9.0// indirect
121+
github.com/rcrowley/go-metricsv0.0.0-20200313005456-10cdbea86bc0// indirect
122+
github.com/rivo/unisegv0.4.4// indirect
123+
github.com/spf13/pflagv1.0.5// indirect
124+
github.com/tabbed/pqtypev0.1.1// indirect
125+
github.com/tailscale/certstorev0.1.1-0.20220316223106-78d6e1c49d8d// indirect
126+
github.com/tailscale/golang-x-cryptov0.0.0-20221102133106-bc99ab8c2d17// indirect
127+
github.com/tailscale/goupnpv1.0.1-0.20210804011211-c64d0f06ea05// indirect
128+
github.com/tailscale/netlinkv1.1.1-0.20211101221916-cabfb018fe85// indirect
129+
github.com/tailscale/wireguard-gov0.0.0-20221219190806-4fa124729667// indirect
130+
github.com/tchap/go-patricia/v2v2.3.1// indirect
131+
github.com/tcnksm/go-httpstatv0.2.0// indirect
132+
github.com/u-root/uiov0.0.0-20221213070652-c3537552635f// indirect
133+
github.com/valyala/fasthttpv1.44.0// indirect
134+
github.com/vishvananda/netlinkv1.1.1-0.20211118161826-650dca95af54// indirect
135+
github.com/vishvananda/netnsv0.0.0-20211101163701-50045581ed74// indirect
136+
github.com/vmihailenco/msgpackv4.0.4+incompatible// indirect
137+
github.com/vmihailenco/msgpack/v4v4.3.12// indirect
138+
github.com/vmihailenco/tagparserv0.1.1// indirect
139+
github.com/x448/float16v0.8.4// indirect
140+
github.com/xeipuuv/gojsonpointerv0.0.0-20190905194746-02993c407bfb// indirect
141+
github.com/xeipuuv/gojsonreferencev0.0.0-20180127040603-bd5ef7bd5415// indirect
142+
github.com/yashtewari/glob-intersectionv0.1.0// indirect
143+
github.com/zclconf/go-ctyv1.10.0// indirect
144+
github.com/zeebo/errsv1.3.0// indirect
145+
go.nhat.io/otelsqlv0.9.0// indirect
146+
go.opencensus.iov0.24.0// indirect
147+
go.opentelemetry.io/otelv1.14.0// indirect
148+
go.opentelemetry.io/otel/exporters/otlp/internal/retryv1.14.0// indirect
149+
go.opentelemetry.io/otel/exporters/otlp/otlptracev1.14.0// indirect
150+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpcv1.14.0// indirect
151+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttpv1.14.0// indirect
152+
go.opentelemetry.io/otel/metricv0.37.0// indirect
153+
go.opentelemetry.io/otel/sdkv1.14.0// indirect
154+
go.opentelemetry.io/otel/tracev1.14.0// indirect
155+
go.opentelemetry.io/proto/otlpv0.19.0// indirect
156+
go4.org/memv0.0.0-20210711025021-927187094b94// indirect
157+
go4.org/netipxv0.0.0-20220725152314-7e7bdc8411bf// indirect
158+
golang.org/x/cryptov0.8.0// indirect
159+
golang.org/x/expv0.0.0-20221205204356-47842c84f3db// indirect
160+
golang.org/x/modv0.10.0// indirect
161+
golang.org/x/netv0.9.0// indirect
162+
golang.org/x/oauth2v0.7.0// indirect
163+
golang.org/x/syncv0.1.0// indirect
164+
golang.org/x/sysv0.8.0// indirect
165+
golang.org/x/termv0.7.0// indirect
166+
golang.org/x/textv0.9.0// indirect
167+
golang.org/x/timev0.3.0// indirect
168+
golang.org/x/toolsv0.7.0// indirect
169+
golang.org/x/xerrorsv0.0.0-20220907171357-04be3eba64a2// indirect
170+
golang.zx2c4.com/wintunv0.0.0-20230126152724-0fa3db229ce2// indirect
171+
golang.zx2c4.com/wireguard/windowsv0.5.3// indirect
172+
google.golang.org/appenginev1.6.7// indirect
173+
google.golang.org/genprotov0.0.0-20230410155749-daa745c078e1// indirect
174+
google.golang.org/grpcv1.54.0// indirect
175+
google.golang.org/protobufv1.30.0// indirect
176+
gopkg.in/inf.v0v0.9.1// indirect
177+
gopkg.in/square/go-jose.v2v2.6.0// indirect
178+
gopkg.in/yaml.v2v2.4.0// indirect
179+
gopkg.in/yaml.v3v3.0.1// indirect
180+
gvisor.dev/gvisorv0.0.0-20221203005347-703fd9b7fbc0// indirect
181+
inet.af/peercredv0.0.0-20210906144145-0893ea02156a// indirect
182+
k8s.io/klog/v2v2.100.1// indirect
183+
k8s.io/kube-openapiv0.0.0-20230308215209-15aac26d736a// indirect
184+
k8s.io/utilsv0.0.0-20230209194617-a36077c30491// indirect
185+
nhooyr.io/websocketv1.8.7// indirect
186+
sigs.k8s.io/jsonv0.0.0-20221116044647-bc3834ca7abd// indirect
187+
sigs.k8s.io/structured-merge-diff/v4v4.2.3// indirect
188+
sigs.k8s.io/yamlv1.3.0// indirect
189+
storj.io/drpcv0.0.33-0.20230420154621-9716137f6037// indirect
190+
tailscale.comv1.32.2// indirect
191+
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp