-
Notifications
You must be signed in to change notification settings - Fork 260
Azure cns yaml #1058
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
Merged
Merged
Azure cns yaml #1058
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6f13751
[feat] making azure-cns-windows yaml
pjohnst5 5528063
making progress
pjohnst5 120a3eb
Rename to azure-cns
pjohnst5 b7701cf
kubeconfig var
pjohnst5 6b1b255
with spacer
pjohnst5 582cd01
Swift manager only on linux for right now
pjohnst5 c0d001e
azure-cns name
pjohnst5 3761bd9
Final touches on Azure cns yaml
pjohnst5 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| apiVersion: apps/v1 | ||
| kind: DaemonSet | ||
| metadata: | ||
| name: azure-cns-win | ||
| namespace: kube-system | ||
| labels: | ||
| app: azure-cns-win | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| k8s-app: azure-cns-win | ||
| template: | ||
| metadata: | ||
| labels: | ||
| k8s-app: azure-cns-win | ||
| spec: | ||
| securityContext: | ||
| windowsOptions: | ||
| hostProcess: true | ||
| runAsUserName: "NT AUTHORITY\\SYSTEM" | ||
| hostNetwork: true | ||
| containers: | ||
| - name: cns-container | ||
| image: acnpublic.azurecr.io/azure-cns-win:v1.4.15-1-g1b238a3f9 | ||
| imagePullPolicy: IfNotPresent | ||
| command: | ||
| ["%CONTAINER_SANDBOX_MOUNT_POINT%/usr/local/bin/azure-cns.exe"] | ||
| args: | ||
| [ | ||
| "-cns-url", | ||
| "tcp://$(CNSIpAddress):$(CNSPort)", | ||
| "-log-target", | ||
| "$(CNSLogTarget)", | ||
| "-log-location", | ||
| "$(CNSLogDirectory)", | ||
| "-store-file-path", | ||
| "$(CNSStoreFilePath)", | ||
| "-config-path", | ||
| "%CONTAINER_SANDBOX_MOUNT_POINT%\\$(CNS_CONFIGURATION_PATH)", | ||
| ] | ||
| volumeMounts: | ||
| - name: log | ||
| mountPath: /k | ||
| - name: cns-config | ||
| mountPath: etc/azure-cns | ||
| ports: | ||
| - containerPort: 10090 | ||
| env: | ||
| - name: CNSIpAddress | ||
| value: "127.0.0.1" | ||
| - name: CNSPort | ||
| value: "10090" | ||
| - name: CNSLogTarget | ||
| value: "stdoutfile" | ||
| - name: CNSLogDirectory | ||
| value: "C:\\k" | ||
| - name: CNSStoreFilePath | ||
| value: "C:\\k\\" | ||
| - name: CNS_CONFIGURATION_PATH | ||
| value: "etc\\azure-cns\\cns_config.json" | ||
| - name: NODENAME | ||
| valueFrom: | ||
| fieldRef: | ||
| apiVersion: v1 | ||
| fieldPath: spec.nodeName | ||
| - name: KUBECONFIG | ||
| value: "C:\\k\\config" | ||
| volumes: | ||
| - name: log | ||
| hostPath: | ||
| path: /k | ||
| type: Directory | ||
| - name: cns-config | ||
| configMap: | ||
| name: cns-config | ||
| nodeSelector: | ||
| kubernetes.io/os: windows | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: cns-config | ||
| namespace: kube-system | ||
| data: | ||
| cns_config.json: | | ||
| { | ||
| "TelemetrySettings": { | ||
| "TelemetryBatchSizeBytes": 16384, | ||
| "TelemetryBatchIntervalInSecs": 15, | ||
| "RefreshIntervalInSecs": 15, | ||
| "DisableAll": false, | ||
| "HeartBeatIntervalInMins": 30, | ||
| "DebugMode": false, | ||
| "SnapshotIntervalInMins": 60 | ||
| }, | ||
| "ManagedSettings": { | ||
| "PrivateEndpoint": "", | ||
| "InfrastructureNetworkID": "", | ||
| "NodeID": "", | ||
| "NodeSyncIntervalInSeconds": 30 | ||
| }, | ||
| "ChannelMode": "CRD", | ||
| "InitializeFromCNI": true | ||
| } | ||
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
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.