Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,24 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
apiVersion: external-secrets.io/v1beta1
|
| 2 |
+
kind: ExternalSecret
|
| 3 |
+
metadata:
|
| 4 |
+
name: dk-cfg-example
|
| 5 |
+
spec:
|
| 6 |
+
refreshInterval: 1h
|
| 7 |
+
secretStoreRef:
|
| 8 |
+
name: example
|
| 9 |
+
kind: SecretStore
|
| 10 |
+
target:
|
| 11 |
+
template:
|
| 12 |
+
type: kubernetes.io/dockerconfigjson
|
| 13 |
+
data:
|
| 14 |
+
.dockerconfigjson: '{"auths":{"{{ .registryName | lower }}.{{ .registryHost }}":{"username":"{{ .registryName }}","password":"{{ .password }}","auth":"{{ printf "%s:%s" .registryName .password | b64enc }}"}}}'
|
| 15 |
+
data:
|
| 16 |
+
- secretKey: registryName
|
| 17 |
+
remoteRef:
|
| 18 |
+
key: secret/docker-registry-name # "myRegistry"
|
| 19 |
+
- secretKey: registryHost
|
| 20 |
+
remoteRef:
|
| 21 |
+
key: secret/docker-registry-host # "docker.io"
|
| 22 |
+
- secretKey: password
|
| 23 |
+
remoteRef:
|
| 24 |
+
key: secret/docker-registry-password
|