Add dockercfg example to Kubernetes secret (#14151)
This commit is contained in:
parent
bcf1514422
commit
3556004501
|
@ -33,6 +33,22 @@ resource "kubernetes_secret" "example" {
|
|||
}
|
||||
```
|
||||
|
||||
## Example Usage (Docker config)
|
||||
|
||||
```hcl
|
||||
resource "kubernetes_secret" "example" {
|
||||
metadata {
|
||||
name = "docker-cfg"
|
||||
}
|
||||
|
||||
data {
|
||||
".dockercfg" = "${file("${path.module}/.docker/config.json")}"
|
||||
}
|
||||
|
||||
type = "kubernetes.io/dockercfg"
|
||||
}
|
||||
```
|
||||
|
||||
## Argument Reference
|
||||
|
||||
The following arguments are supported:
|
||||
|
|
Loading…
Reference in New Issue