Skip to content

Commit

Permalink
updating powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
warroyo committed Jan 31, 2022
1 parent 54405bc commit 384e551
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
11 changes: 11 additions & 0 deletions windows/ako/ako-toleration-overlay.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.subset({"kind": "StatefulSet", "metadata": {"namespace": "avi-system"}})
---
spec:
template:
spec:
#@overlay/match missing_ok=True
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
2 changes: 1 addition & 1 deletion windows/cert/cluster_config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Add this to the cluster config you are using and replace the content with base64 encoded root ca
CUSTOM_CA: <base64encodedrootcert>
ROOT_CERT: <base64encodedrootcert>
2 changes: 1 addition & 1 deletion windows/cert/inject-cert-values.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#@data/values
#@overlay/match-child-defaults missing_ok=True
---
CUSTOM_CA:
ROOT_CERT:
7 changes: 5 additions & 2 deletions windows/cert/inject-cert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ spec:
files:
#@overlay/append
- path: c:\k\rootca.pem
content: #@ base64.decode(data.values.CUSTOM_CA)
content: #@ base64.decode(data.values.ROOT_CERT)
- path: c:\k\addcert.ps1
content: |
Import-Certificate -FilePath "c:\k\rootca.pem" -CertStoreLocation cert:\LocalMachine\Root
#@overlay/match missing_ok=True
preKubeadmCommands:
#@overlay/append
- 'Import-Certificate -FilePath "c:\k\rootca.pem" -CertStoreLocation cert:\LocalMachine\Root'
- powershell c:/k/addcert.ps1 -ExecutionPolicy Bypass
#@ end

0 comments on commit 384e551

Please sign in to comment.