forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the missing imagePullSecret configuration
- Loading branch information
1 parent
ee1c2d6
commit e54cb59
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,47 @@ for your `KO_DOCKER_REPO` if required. To be able to push images to | |
gcloud auth configure-docker | ||
``` | ||
|
||
Besides, if your registry `KO_DOCKER_REPO` is private, then you also should create a [secret](https://kubernetes.io/docs/concepts/configuration/secret/#docker-config-secrets) | ||
and add it to `tekton-pipelines-controller` and `tekton-pipelines-webhook` serviceAccounts accordingly to pull images. | ||
|
||
- Create a secret | ||
```yaml | ||
kubectl create secret docker-registry ${SECRET_NAME} \ | ||
--docker-username=${USERNAME} \ | ||
--docker-password=${PASSWORD} \ | ||
[email protected] \ | ||
--namespace=tekton-pipelines | ||
``` | ||
|
||
- Add it to serviceAccount | ||
|
||
Because you will install tekton-pipelines use `ko` later, before that, you need to change [the contents of serviceAccount](./config/200-serviceaccount.yaml) to below: | ||
```yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: tekton-pipelines-controller | ||
namespace: tekton-pipelines | ||
labels: | ||
app.kubernetes.io/component: controller | ||
app.kubernetes.io/instance: default | ||
app.kubernetes.io/part-of: tekton-pipelines | ||
imagePullSecrets: | ||
- name: ${SECRET_NAME} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: tekton-pipelines-webhook | ||
namespace: tekton-pipelines | ||
labels: | ||
app.kubernetes.io/component: webhook | ||
app.kubernetes.io/instance: default | ||
app.kubernetes.io/part-of: tekton-pipelines | ||
imagePullSecrets: | ||
- name: ${SECRET_NAME} | ||
``` | ||
After setting `GOPATH` and putting `$GOPATH/bin` on your `PATH`, you must then install these tools: | ||
|
||
3. [`ko`](https://github.com/google/ko): For development. `ko` version v0.5.1 or | ||
|