Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching upstream chart #1

Open
wants to merge 92 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
765724d
drone chart updates (#53)
May 2, 2022
d972e99
update charts [CI SKIP]
May 2, 2022
01df822
update appVersion to match drone image version (#54)
May 2, 2022
517d417
update charts [CI SKIP]
May 2, 2022
df73efd
drone-runner-kube Updates drone-runner-kube service account to suppor…
May 3, 2022
7e33153
update charts [CI SKIP]
May 3, 2022
a393e1e
allow loadBalancerIP to be set for drone service (#56)
May 4, 2022
9e1f5db
update charts [CI SKIP]
May 4, 2022
c7f6adc
initial drone-runner-docker chart (#55)
May 5, 2022
ce7e12f
update charts [CI SKIP]
May 5, 2022
28b3d38
Drone release label (#57)
May 5, 2022
713e2c2
update charts [CI SKIP]
May 5, 2022
68175b5
common release label for docker runner chart (#58)
May 5, 2022
8125047
update charts [CI SKIP]
May 5, 2022
b07146b
remove docker runner tests (#59)
May 5, 2022
590ae01
update charts [CI SKIP]
May 5, 2022
820212a
fix: wrong chart source urls (#49)
viceice May 11, 2022
bc27046
update charts [CI SKIP]
viceice May 11, 2022
761563c
chore: add artifacthub repo metadata (#61)
viceice May 11, 2022
167f2d2
update charts [CI SKIP]
viceice May 11, 2022
55f77de
[SKIP CI] update my email address for artifacthub (#62)
May 11, 2022
3ac888a
bump images (#66)
loeffel-io May 23, 2022
cffd02d
update charts [CI SKIP]
loeffel-io May 23, 2022
de90278
chore: move artifacthub metadata (#63)
viceice May 23, 2022
8aa3ee3
update charts [CI SKIP]
viceice May 23, 2022
e72f94e
chore: add artifact hub repo id (#67)
viceice May 24, 2022
22ae88c
update charts [CI SKIP]
viceice May 24, 2022
5214258
adding README for drone-runner-docker (#74)
Jun 3, 2022
7f9e83a
update charts [CI SKIP]
Jun 3, 2022
1a0b98b
[SKIP CI] removing viceice from list of owners (#75)
Jun 3, 2022
65ca29c
service account support for drone server (#76)
bkk-bcd Jun 24, 2022
6274966
update charts [CI SKIP]
bkk-bcd Jun 24, 2022
b542a3f
drone chart 0.3.1 (#77)
Jun 28, 2022
9f973a3
update charts [CI SKIP]
Jun 28, 2022
5b9cee8
Drone runner-kube: add support for ingress for k8s >= 1.18 (#72)
AlaaAttya Jun 29, 2022
a16e846
update charts [CI SKIP]
AlaaAttya Jun 29, 2022
1dc9ce0
add annotations support to drone service (#78)
Jul 14, 2022
1a32873
update charts [CI SKIP]
Jul 14, 2022
11d131d
doc: add details on how to configure secret (#82)
kameshsampath Jul 18, 2022
d560d93
update charts [CI SKIP]
kameshsampath Jul 18, 2022
f058f76
fix: configure nodePort when defined (#81)
kameshsampath Jul 18, 2022
b3e5cbd
update charts [CI SKIP]
kameshsampath Jul 18, 2022
012a941
bump drone chart to 0.5.0 (#83)
Jul 18, 2022
71557b3
update charts [CI SKIP]
Jul 18, 2022
9111427
restore drone chart 0.4.0
jimsheldon Jul 18, 2022
15e3013
update charts [CI SKIP]
jimsheldon Jul 18, 2022
479a559
drone-runner-kube: fix ingress path (#86)
agrahamlincoln Jul 25, 2022
d11a483
update charts [CI SKIP]
agrahamlincoln Jul 25, 2022
b4cdc39
0.1.0 of docker runner chart (#90)
Jul 26, 2022
340a2e8
update charts [CI SKIP]
Jul 26, 2022
41b7944
fix: ability to add hostAliases to drone server pods (#91)
kameshsampath Aug 5, 2022
53db5d6
update charts [CI SKIP]
kameshsampath Aug 5, 2022
2e11771
(feat) allow dind command to be overridden (#93)
Aug 12, 2022
6c0a953
update charts [CI SKIP]
Aug 12, 2022
ef6e934
fix: dind command improvements (#94)
kameshsampath Aug 15, 2022
6784769
update charts [CI SKIP]
kameshsampath Aug 15, 2022
03ac692
Fixed spelling in README (#97)
neelanjan00 Sep 6, 2022
8d731a5
update charts [CI SKIP]
neelanjan00 Sep 6, 2022
45d72b1
(maint) update namespace information for drone runner installation (#99)
Sep 27, 2022
d8776eb
update charts [CI SKIP]
Sep 27, 2022
cf5be2f
[SKIP CI] removing drone-runner-kube
jimsheldon Oct 4, 2022
2dfc4ce
fix link and remove .helmignore
jimsheldon Oct 4, 2022
c41fa90
Merge pull request #101 from drone/remove-drone-runner-kube
bradrydzewski Oct 4, 2022
b4ad0b4
addind drone-gc to drone-runner-docker chart (#102)
Oct 13, 2022
4d19cc4
update charts [CI SKIP]
Oct 13, 2022
cbb480d
Deployment resources fix. (#103)
staffanselander Oct 17, 2022
a1e49b6
update charts [CI SKIP]
staffanselander Oct 17, 2022
17d826f
Add ingress className in drone chart (#95)
cyhoon Oct 17, 2022
da3be4e
update charts [CI SKIP]
cyhoon Oct 17, 2022
aa9f7f4
feat: add support for additional containers (#89)
coryjohnson-flume Oct 18, 2022
abfb80c
update charts [CI SKIP]
coryjohnson-flume Oct 18, 2022
7e634e6
Adding extraVolumeMounts to main container. (#104)
staffanselander Oct 21, 2022
d667181
update charts [CI SKIP]
staffanselander Oct 21, 2022
d076b81
Add registry configuration (#105)
grachevko Nov 15, 2022
af83b93
update charts [CI SKIP]
grachevko Nov 15, 2022
ed27ae7
Fix autoscaling (#107)
pandalec Nov 22, 2022
d5e978f
update charts [CI SKIP]
pandalec Nov 22, 2022
7a3c099
Add resources for docker-runner's HPA (#108)
pandalec Nov 22, 2022
7bab9f1
update charts [CI SKIP]
pandalec Nov 22, 2022
6075a7a
[SKIP CI] adding documentation related to MTU (#109)
Nov 23, 2022
221afea
[SKIP CI] rearrange doc sections (#110)
Nov 23, 2022
7732368
fix: use changed scope to fix error parsing securityContexts (#111)
samuelfischer Dec 20, 2022
5546d72
update charts [CI SKIP]
samuelfischer Dec 20, 2022
ea5f5b3
Latest drone server version (#117)
Sep 6, 2023
ea25636
update charts [CI SKIP]
Sep 6, 2023
91c90fa
(CI-9285) allow dind to gracefully shutdown (#119)
Nov 13, 2023
a4fd5c6
update charts [CI SKIP]
Nov 13, 2023
9b289b7
drone-runner-docker: add support for additional pod labels for
wolffberg Jul 12, 2024
ea63d74
Merge pull request #122 from wolffberg/feature/pod-labels
ShobhitSingh11 Aug 14, 2024
fb339fc
update charts [CI SKIP]
ShobhitSingh11 Aug 14, 2024
0dff52a
Change to trigger deploy pipeline
Aug 14, 2024
5a2ed94
update charts [CI SKIP]
Aug 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ kind: pipeline
type: docker
name: default

trigger:
branch:
- master

steps:
- name: lint
image: quay.io/helmpack/chart-testing:v3.0.0-beta.1
image: quay.io/helmpack/chart-testing:v3.5.0
commands:
- apk add --update make
- make lint
- ct lint
# cloud.drone.io runners are using a version of docker prior to 20.10.0, so
# this step currently fails due to this change in apline 3.14
# https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2
# - make lint

- name: generate
image: alpine/helm:3.0.3
Expand Down Expand Up @@ -45,3 +53,4 @@ steps:
- push
branch:
- master

12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ Session.vim
**/charts/*.tgz

.history
!.vscode
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations":[
"EditorConfig.EditorConfig",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"redhat.vscode-yaml"
]
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Contributors must follow the [Drone community code of conduct](CODE_OF_CONDUCT.m

* Commit(s) should be prefixed by the name of the chart that has been added or modified.
* `helm lint` must pass for all charts.
* New charts must include a README.md. See [drone-runner-kube](charts/drone-runner-kube/README.md) for an example.
* New charts must include a README.md. See [drone-runner-docker](charts/drone-runner-docker/README.md) for an example.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish:
@mkdir -p temp docs
@helm repo add stable https://charts.helm.sh/stable
@helm repo add incubator https://charts.helm.sh/incubator
@helm package -u -d temp charts/drone charts/drone-runner-kube charts/drone-kubernetes-secrets
@helm package -u -d temp charts/drone charts/drone-runner-docker charts/drone-kubernetes-secrets
@helm repo index --debug --url=https://charts.drone.io --merge docs/index.yaml temp
@mv temp/drone*.tgz docs
@mv temp/index.yaml docs/index.yaml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ helm repo update
See the the READMEs for the various charts in the [charts](charts) directory.

* If you have not yet installed Drone server, start with the [drone](charts/drone) chart.
* After installing `drone`, install [drone-runner-kube](charts/drone-runner-kube) to begin executing builds.
* After installing `drone`, install [drone-runner-docker](charts/drone-runner-docker) to begin executing builds.

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ This directory contains the charts that are published to the Drone Helm chart re
A nonexhaustive overview of the charts:

* [drone](drone/README.md) - Drone server
* [drone-runner-kube](drone-runner-kube/README.md) - The Kubernetes runner for Drone
* [drone-runner-docker](drone-runner-docker/README.md) - The Docker runner for Drone
4 changes: 2 additions & 2 deletions charts/drone-kubernetes-secrets/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: drone-kubernetes-secrets
description: A Kubernetes Secrets extension for Drone
# TODO: Un-comment once we move back to apiVersion: v2.
# type: application
version: 0.1.1
version: 0.1.4
appVersion: 1.0.0
kubeVersion: "^1.13.0-0"
home: https://github.com/drone/drone-kubernetes-secrets
Expand All @@ -19,7 +19,7 @@ keywords:
- go
sources:
- https://github.com/drone/drone-kubernetes-secrets
- https://github.com/drone/helm
- https://github.com/drone/charts
maintainers:
- name: Drone
email: [email protected]
2 changes: 0 additions & 2 deletions charts/drone-kubernetes-secrets/docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ This page will guide you through using the `drone-kubernetes-secrets` Helm chart
**Note: Before beginning installation, you should have functioning deploys of Drone server and the Kubernetes runner. Refer to the their respective charts if needed:**

* [drone](../../drone/README.md)
* [drone-runner-kube](../../drone-runner-kube/README.md)

## Configuration (values)

Expand Down Expand Up @@ -53,7 +52,6 @@ Once the `install` command is ran, your Kubernetes cluster will begin creating r
$ kubectl --namespace drone get pods
NAME READY STATUS RESTARTS AGE
drone-76d6bb8968-2s5n9 1/1 Running 0 1h
drone-runner-kube-696cf7b8d6-pds2h 1/1 Running 0 10m
drone-kubernetes-secrets-547799b4db-c58wv 1/1 Running 0 1m
```

Expand Down
2 changes: 1 addition & 1 deletion charts/drone-kubernetes-secrets/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- name: server
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
Expand Down
1 change: 1 addition & 0 deletions charts/drone-kubernetes-secrets/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
image:
registry: docker.io
repository: drone/kubernetes-secrets
tag: latest
pullPolicy: IfNotPresent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# Chart dirs/files
docs/
ci/
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# TODO: Change this back to v2 once chart-releaser supports it.
apiVersion: v1
name: drone-runner-kube
description: The Drone Kubernetes runner launches builds in Kubernetes Jobs
name: drone-runner-docker
description: A Helm chart for the Drone Docker runner which uses Docker-in-Docker (dind)
# TODO: Un-comment once we move back to apiVersion: v2.
# type: application
version: 0.1.5
appVersion: 1.0.0
version: 0.7.0
appVersion: "1.8.1"
kubeVersion: "^1.13.0-0"
home: https://kube-runner.docs.drone.io/
home: https://docs.drone.io/runner/docker/overview/
icon: https://drone.io/apple-touch-icon.png
keywords:
- continuous-delivery
Expand All @@ -18,8 +18,8 @@ keywords:
- drone.io
- go
sources:
- https://github.com/drone-runners/drone-runner-kube
- https://github.com/drone/helm
- https://github.com/drone-runners/drone-runner-docker
- https://github.com/drone/charts
maintainers:
- name: Drone
email: [email protected]
48 changes: 48 additions & 0 deletions charts/drone-runner-docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Drone Docker runner

[Drone](http://drone.io/) is a Continuous Integration platform built on container technology.

This Chart is for installing the [Docker runner](https://docs.drone.io/runner/docker/) for Drone.

## Installing Drone Docker runner

See the [drone-runner-docker chart installation guide](./docs/install.md).

## Configuring Drone Docker runner

See [values.yaml](values.yaml) to see the Chart's default values. Refer to the [Docker runner reference](https://docs.drone.io/runner/docker/configuration/reference/) for a more complete list of options.

:information_source: In addition to the Drone Docker runner container, this chart runs [Docker-in-Docker](https://hub.docker.com/_/docker) (to run Docker containers in pipelines) and [Drone GC](https://github.com/drone/drone-gc) (for automatically pruning Docker images) containers within the pod.

To adjust an existing Drone install's configuration:

```console
# If you have a values file:
helm upgrade drone-runner-docker drone/drone-runner-docker --namespace drone --values drone-runner-docker-values.yaml
# If you want to change one value and don't have a values file:
helm upgrade drone-runner-docker drone/drone-runner-docker --namespace drone --reuse-values --set someKey=someVal
```

## Upgrading Drone Docker runner

Read the [release notes](https://github.com/drone-runners/drone-runner-docker/releases) to make sure there are no backwards incompatible changes. Make adjustments to your values as needed, then run `helm upgrade`:

```console
# This pulls the latest version of the drone chart from the repo.
helm repo update
helm upgrade drone-runner-docker drone/drone-runner-docker --namespace drone --values drone-runner-docker-values.yaml
```

## Uninstalling Drone Docker runner

To uninstall/delete the `drone` deployment in the `drone` namespace:

```console
helm delete drone-runner-docker --namespace drone
```

Substitute your values if they differ from the examples. See `helm delete --help` for a full reference on `delete` parameters and flags.

## Support

For questions, suggestions, and discussion, visit the [Drone community site](https://community.harness.io/c/drone).
120 changes: 120 additions & 0 deletions charts/drone-runner-docker/docs/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# Drone Docker runner installation with Helm

This page will guide you through using the `drone-runner-docker` Helm chart to install the Drone Docker runner.

**Note: Before beginning installation, you should have a functioning deploy of Drone server. If you still need to install Drone server, complete an install of [drone](../../drone/README.md) before continuing.**

## Disclaimer

This page is not intended to be a comprehensive guide to installing the Drone Docker runner. It will only cover the Helm/Kubernetes-specific parts of the process. For further detail, see the Drone [Docker runner installation guide](https://docs.drone.io/runner/docker/overview/).

## Configuration (values)

**Note: This guide assumes that Drone and the Docker runner are installed in the `drone` namespace. Feel free to change this as desired, but we suggest putting Drone server and the Docker runner in the same namespace as a start.**

The following command will create a new namespace called `drone`:

```bash
kubectl create namespace drone
```

In order to install the chart, you'll need to pass in additional configuration. This configuration comes in the form of Helm values, which are key/value pairs. A minimal install of Drone server requires the following values:

```yaml
env:
## REQUIRED: Set the secret secret token that the Docker runner will use
## to authenticate. This is commented out in order to leave you the ability to set the
## key via a separately provisioned secret (see extraSecretNamesForEnvFrom above).
## Ref: https://docs.drone.io/runner/docker/configuration/reference/drone-rpc-secret/
##
## NOTE TO READER: Change this to match the DRONE_RPC_SECRET secret set in your drone server configs.
DRONE_RPC_SECRET: xxxxxxxxxxxxx
```

Copy these into a new file, which we'll call `drone-runner-docker-values.yaml`. Adjust the included defaults to reflect your environment. For the ful list of configurables, see the [configuration reference](https://docs.drone.io/runner/docker/configuration/).

### Docker-in-Docker MTU

The Docker-in-Docker (dind) sidecar creates its own temporary networks as it executes Drone Docker pipelines. **The MTU of these networks must be smaller than the outer networking layer(s).** For more background, see this [blog post](https://blog.dustinrue.com/2020/08/fixing-dind-builds-that-stall-when-using-gitlab-and-kubernetes/).

You should retrieve the MTU value of your Kubernetes cluster networking layer. **If it is smaller than 1500 (the default value for dind), you will need to pass some extra parameters.**

Pass `--mtu` in the `dind.commandArgs` section of your `drone-runner-docker-values.yaml` file:

```yaml
dind:
commandArgs:
- "--host"
- "tcp://localhost:2375"
- "--mtu=12345"
```

Replace `12345` with your appropriate MTU value.

To ensure that the temporary Docker networks created by the runner also have the appropriate value, add `DRONE_RUNNER_NETWORK_OPTS` to the `env` section of your `drone-runner-docker-values.yaml` file:

```yaml
env:
DRONE_RUNNER_NETWORK_OPTS: "com.docker.network.driver.mtu:12345"
```

Replace `12345` with your appropriate MTU value.

Finally, if you are using the official [Drone Docker plugin](https://plugins.drone.io/plugins/docker) to build Docker images in your pipelines, it creates its own temporary Docker network, so its MTU must also be changed.

In your Drone pipelines, add the `mtu` parameter:

```yaml
kind: pipeline
type: docker
name: default

steps:
- name: example
image: plugins/docker
settings:
mtu: 12345
```

Replace `12345` with your appropriate MTU value.

## Run the installation

Run `helm install` with your values provided:

```console
helm install --namespace drone drone-runner-docker drone/drone-runner-docker -f drone-runner-docker-values.yaml
```

To break down the above, this command means: "install the `drone/drone-runner-docker` chart as a Helm release named `drone-runner-docker` in the `drone` namespace. The `drone-runner-docker-values.yaml` file will be used for configuring Drone." See `helm install --help` for a full list of parameters and flags.

Once the `install` command is ran, your Kubernetes cluster will begin creating resources. To see how your deploy is shaping up, run:

```console
$ kubectl --namespace drone get pods
NAME READY STATUS RESTARTS AGE
drone-76d6bb8968-2s5n9 1/1 Running 0 1h
drone-runner-docker-696cf7b8d6-pds2h 1/1 Running 0 1m
```

If the `drone-runner-*` pod's state is `Running`, the runner process successfully launched. Check the logs to make sure there are no warnings or errors:

```console
$ kubectl --namespace drone logs \
-l 'app.kubernetes.io/name=drone-runner-docker' \
-l 'app.kubernetes.io/component=drone-runner-docker'

time="2022-05-04T16:59:44Z" level=info msg="starting the server" addr=":3000"
time="2022-05-04T16:59:44Z" level=info msg="successfully pinged the remote server"
time="2022-05-04T16:59:44Z" level=info msg="polling the remote server" arch=amd64 capacity=2 endpoint="http://drone" kind=pipeline os=linux type=docker
```

If you see the "starting the server" text above without error, the Drone Docker runner is ready.

## Next steps

Now that Drone server and the Drone Docker runner are installed, you are ready to begin submitting CI builds. Refer to the [Docker runner documentation](https://docs.drone.io/pipeline/docker/overview/) for more information on how to proceed.

## Help

If you have questions or have encountered issues, visit the [Drone community site](https://community.harness.io/c/drone/14) to share.
22 changes: 22 additions & 0 deletions charts/drone-runner-docker/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "drone-runner-docker.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "drone-runner-docker.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "drone-runner-docker.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "drone-runner-docker.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}
Loading