Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions cns/azure-cns-windows.yaml
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
}
2 changes: 2 additions & 0 deletions tools/acncli/deployment/manager_swift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
labels:
acn: azure-cni-manager
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
Expand Down