Add dockercfg example to Kubernetes secret (#14151)

This commit is contained in:
Payam Hekmat 2017-05-04 03:14:23 -05:00 committed by Radek Simko
parent bcf1514422
commit 3556004501
1 changed files with 16 additions and 0 deletions

View File

@ -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: