Skip to content

Commit

Permalink
improvement(k8s): update in-cluster docker to 19.03.4
Browse files Browse the repository at this point in the history
This fixes a number of issues relating to BuildKit support, among
other things.
  • Loading branch information
edvald committed Nov 13, 2019
1 parent c1886f5 commit a4fb418
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 6 deletions.
22 changes: 22 additions & 0 deletions docs/reference/providers/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ this is less secure than Kaniko, but in turn it is generally faster. See the
| -------- | -------- | ---------------- |
| `string` | No | `"local-docker"` |

### `providers[].clusterDocker`

[providers](#providers) > clusterDocker

Configuration options for the `cluster-docker` build mode.

| Type | Required | Default |
| -------- | -------- | ------- |
| `object` | No | `"{}"` |

### `providers[].clusterDocker.enableBuildKit`

[providers](#providers) > [clusterDocker](#providersclusterdocker) > enableBuildKit

Enable [BuildKit](https://github.com/moby/buildkit) support. This should in most cases work well and be more performant, but we're opting to keep it optional until it's enabled by default in Docker.

| Type | Required | Default |
| --------- | -------- | ------- |
| `boolean` | No | `false` |

### `providers[].defaultHostname`

[providers](#providers) > defaultHostname
Expand Down Expand Up @@ -1116,6 +1136,8 @@ The values in the schema below are the default values.
providers:
- environments:
buildMode: local-docker
clusterDocker:
enableBuildKit: false
defaultHostname:
defaultUsername:
deploymentStrategy: rolling
Expand Down
22 changes: 22 additions & 0 deletions docs/reference/providers/local-kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ this is less secure than Kaniko, but in turn it is generally faster. See the
| -------- | -------- | ---------------- |
| `string` | No | `"local-docker"` |

### `providers[].clusterDocker`

[providers](#providers) > clusterDocker

Configuration options for the `cluster-docker` build mode.

| Type | Required | Default |
| -------- | -------- | ------- |
| `object` | No | `"{}"` |

### `providers[].clusterDocker.enableBuildKit`

[providers](#providers) > [clusterDocker](#providersclusterdocker) > enableBuildKit

Enable [BuildKit](https://github.com/moby/buildkit) support. This should in most cases work well and be more performant, but we're opting to keep it optional until it's enabled by default in Docker.

| Type | Required | Default |
| --------- | -------- | ------- |
| `boolean` | No | `false` |

### `providers[].defaultHostname`

[providers](#providers) > defaultHostname
Expand Down Expand Up @@ -1017,6 +1037,8 @@ The values in the schema below are the default values.
providers:
- environments:
buildMode: local-docker
clusterDocker:
enableBuildKit: false
defaultHostname:
defaultUsername:
deploymentStrategy: rolling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,20 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: docker
containerPort: 2375
containerPort: 2376
protocol: TCP
securityContext:
privileged: true
livenessProbe:
tcpSocket:
port: 2375
readinessProbe:
tcpSocket:
port: 2375
port: 2376
initialDelaySeconds: 10
periodSeconds: 2
livenessProbe:
tcpSocket:
port: 2376
initialDelaySeconds: 20
periodSeconds: 20
volumeMounts:
- name: garden-docker-data
mountPath: /var/lib/docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

image:
repository: docker
tag: 18.09.3-dind
tag: 19.03.4-dind
pullPolicy: IfNotPresent

nameOverride: "garden-docker-daemon"
Expand Down

0 comments on commit a4fb418

Please sign in to comment.