Merge pull request #669 from grouville/docs_fix107
docs: update 107, fully tested and working (apart gke and eks)
This commit is contained in:
commit
32da73c84c
@ -164,13 +164,12 @@ values={[
|
|||||||
package kube
|
package kube
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"dagger.io/dagger"
|
|
||||||
"dagger.io/kubernetes"
|
"dagger.io/kubernetes"
|
||||||
)
|
)
|
||||||
|
|
||||||
// input: ~/.kube/config file used for deployment
|
// input: ~/.kube/config file used for deployment
|
||||||
// set with `dagger input secret kubeconfig -f ~/.kube/config`
|
// set with `dagger input text kubeconfig -f ~/.kube/config`
|
||||||
kubeconfig: dagger.#Secret @dagger(input)
|
kubeconfig: string @dagger(input)
|
||||||
|
|
||||||
// deploy uses the `dagger.io/kubernetes` package to apply a manifest to a
|
// deploy uses the `dagger.io/kubernetes` package to apply a manifest to a
|
||||||
// Kubernetes cluster.
|
// Kubernetes cluster.
|
||||||
@ -444,9 +443,9 @@ nginx: {
|
|||||||
metadata: labels: app: "nginx"
|
metadata: labels: app: "nginx"
|
||||||
spec: containers: [{
|
spec: containers: [{
|
||||||
"name": "nginx"
|
"name": "nginx"
|
||||||
"image": image
|
"image": "nginx:1.14.2"
|
||||||
ports: [{
|
ports: [{
|
||||||
containerPort: port
|
containerPort: "80"
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
@ -529,6 +528,8 @@ package kube
|
|||||||
`manifest.cue` can be rewritten as follows:
|
`manifest.cue` can be rewritten as follows:
|
||||||
|
|
||||||
```cue title="todoapp/kube/manifest.cue"
|
```cue title="todoapp/kube/manifest.cue"
|
||||||
|
package kube
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/yaml"
|
"encoding/yaml"
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user