-
Notifications
You must be signed in to change notification settings - Fork 10
Author script to enable powershell remote for Windows Node #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bobsira
wants to merge
55
commits into
vrapolinario:main
Choose a base branch
from
bobsira:user/bosira/remote-powershell-script
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
8cf8257
initial commit
bobsira 8a1ce2a
intial refactoring and seperation of concerns
bobsira 5b3e54a
more updates on the set up scripts
bobsira b72ec33
more updates to the automation scripts
bobsira 18efcf9
fixes to containerd installation
bobsira 226cc32
changes to VM specification
bobsira 3a48a66
response content cannot be parsed because the Internet Explorer engi…
bobsira 33456f5
fix to containerd start service command
bobsira 12c5727
logical change to replacement of toml conf file
bobsira fbd7f38
error handling additions
bobsira 3dbc715
updates to NSSM install
bobsira aec2483
uninstall containerd logic
bobsira 8c9f3d7
added stop containerd serv
bobsira 4b21c83
changes to import statement
bobsira 949cf74
restructed file imports
bobsira a3488cd
fix for Uninstall-ContainerTool
bobsira 2f71d71
removed containerd uninstalll logic
bobsira 3ba1538
script tp execute the process
bobsira 6c0e96e
fix on parent directory reference
bobsira 4936277
added the missing session declaration
bobsira 1c1900f
changes to flow of execution
9f16dde
removed unwanted definition
bobsira 85426d6
nssm service check
bobsira d50cc1e
more error handling code
c508c38
folder creation error handling
a4c14e2
fix initialize containerd logic
9ed7350
indentation fix in hosts file
f8ff45e
phase one remoting complete
29505da
containerd setup modification
bobsira af70e9a
feedback on remote work
bobsira 7f57213
intial authoring of auto install file
d291652
BIOS/MBR-Based Hard Disk answer file
7ae051c
setup file to test the configuration
58c3230
updates for testing
5306cf7
add auto-unattend iso file
iankingori c758048
flannel and kube-proxy networking config addition@
bobsira 6109743
Merge pull request #1 from iankingori/bob/iso-setup
bobsira 80d31ee
Merge branch 'vrapolinario:main' into user/bosira/autounattended-wind…
bobsira 1ffcce4
changed from yml to recommended yaml extension
bobsira b4aae2e
generic computer name
4aa93e9
computer name changes
a2e9063
configuring linux nodes
bobsira cd16c12
better logging to the console
bobsira 956beaf
fixing broken changes
bobsira aafc3c9
Merge branch 'user/bosira/autounattended-windows-install' of https://…
bobsira 936eb03
draft changes to merge remote and auto-install work
2411d0e
initial setup to combine the two work
81a2cd4
final setup to merge auto-install and remote config
59a7270
final changes, kalkikubes
e6fbbed
final polish
62e42bf
added SSH setup during auto-install
bobsira 2fa904f
bundled the new xml answer file into an iso
bobsira ed08391
fixed the path mismatch value
bobsira e3beabb
swapped the SSH configuration ordering
bobsira 8398aef
OpenSSH installation in the VM
bobsira File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,142 @@ | ||
| --- | ||
| kind: ConfigMap | ||
| apiVersion: v1 | ||
| metadata: | ||
| name: kube-flannel-windows-cfg | ||
| namespace: kube-flannel | ||
| labels: | ||
| tier: node | ||
| app: flannel | ||
| data: | ||
| cni-conf-containerd.json: | | ||
| { | ||
| "name": "flannel.4096", | ||
| "cniVersion": "0.3.0", | ||
| "type": "flannel", | ||
| "capabilities": { | ||
| "portMappings": true, | ||
| "dns": true | ||
| }, | ||
| "delegate": { | ||
| "type": "sdnoverlay", | ||
| "AdditionalArgs": [ | ||
| { | ||
| "Name": "EndpointPolicy", | ||
| "Value": { | ||
| "Type": "OutBoundNAT", | ||
| "Settings" : { | ||
| "Exceptions": [] | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "Name": "EndpointPolicy", | ||
| "Value": { | ||
| "Type": "SDNROUTE", | ||
| "Settings": { | ||
| "DestinationPrefix": "", | ||
| "NeedEncap": true | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "Name":"EndpointPolicy", | ||
| "Value":{ | ||
| "Type":"ProviderAddress", | ||
| "Settings":{ | ||
| "ProviderAddress":"" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| --- | ||
| apiVersion: apps/v1 | ||
| kind: DaemonSet | ||
| metadata: | ||
| name: kube-flannel-ds-windows-amd64 | ||
| labels: | ||
| tier: node | ||
| app: flannel | ||
| namespace: kube-flannel | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| app: flannel | ||
| template: | ||
| metadata: | ||
| labels: | ||
| tier: node | ||
| app: flannel | ||
| spec: | ||
| affinity: | ||
| nodeAffinity: | ||
| requiredDuringSchedulingIgnoredDuringExecution: | ||
| nodeSelectorTerms: | ||
| - matchExpressions: | ||
| - key: kubernetes.io/os | ||
| operator: In | ||
| values: | ||
| - windows | ||
| - key: kubernetes.io/arch | ||
| operator: In | ||
| values: | ||
| - amd64 | ||
| securityContext: | ||
| windowsOptions: | ||
| hostProcess: true | ||
| runAsUserName: "NT AUTHORITY\\system" | ||
| hostNetwork: true | ||
| serviceAccountName: flannel | ||
| tolerations: | ||
| - operator: Exists | ||
| effect: NoSchedule | ||
| # Mark the pod as a critical add-on for rescheduling. | ||
| - key: CriticalAddonsOnly | ||
| operator: Exists | ||
| - effect: NoExecute | ||
| operator: Exists | ||
| containers: | ||
| - name: kube-flannel | ||
| image: syck0/flannel:v0.21.5-hostprocess | ||
| imagePullPolicy: Always | ||
| volumeMounts: | ||
| - name: flannel-cfg | ||
| mountPath: /mounts/kube-flannel/ | ||
| - name: flannel-windows-cfg | ||
| mountPath: /mounts/kube-flannel-windows/ | ||
| env: | ||
| - name: CNI_BIN_PATH | ||
| value: C:\\opt\\cni\\bin | ||
| - name: CNI_CONFIG_PATH | ||
| value: C:\\etc\\cni\\net.d | ||
| - name: SERVICE_SUBNET | ||
| value: 10.96.0.0/12 | ||
| # As of now with the currently used flannel version (last checked with v0.21.5) we need to overwrite KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT | ||
| # in order to be able to reach the kubernetes api server. Under windows it's currently not possible to reach it over the service created by kubernetes | ||
| # For more context and details check the corresponding PR: https://github.com/kubernetes-sigs/sig-windows-tools/pull/314 | ||
| # Especially the comments in this review: https://github.com/kubernetes-sigs/sig-windows-tools/pull/314#discussion_r1238815189 | ||
| # There is also a follow up issue on the flannel side: https://github.com/flannel-io/flannel/issues/1772 | ||
| # Once this issue is solved we should be able to remove the custom host and port to the kubernetes api server | ||
| - name: KUBERNETES_SERVICE_HOST | ||
| value: control-plane.minikube.internal # KUBERNETES_SERVICE_HOST_VALUE | ||
| - name: KUBERNETES_SERVICE_PORT | ||
| value: "8443" # replace with your "KUBERNETES_SERVICE_PORT_VALUE" | ||
| - name: POD_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| apiVersion: v1 | ||
| fieldPath: metadata.name | ||
| - name: POD_NAMESPACE | ||
| valueFrom: | ||
| fieldRef: | ||
| apiVersion: v1 | ||
| fieldPath: metadata.namespace | ||
| volumes: | ||
| - name: flannel-cfg | ||
| configMap: | ||
| name: kube-flannel-cfg | ||
| - name: flannel-windows-cfg | ||
| configMap: | ||
| name: kube-flannel-windows-cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.