try using lookup for secret

This commit is contained in:
2025-05-01 14:50:08 +05:30
parent df379f22e4
commit 48265b0b94

View File

@@ -23,11 +23,8 @@ spec:
retries: 3 retries: 3
values: values:
hostname: rancher.akshun-lab.uk hostname: rancher.akshun-lab.uk
bootstrapPassword: bootstrapPassword: |
valueFrom: {{ (lookup "v1" "Secret" "cattle-system" "rancher-bootstrap-secret").data.password | b64dec }}
secretKeyRef:
name: rancher-bootstrap-secret
key: password
service: service:
type: NodePort type: NodePort
nodePort: 90 nodePort: 90