diff options
Diffstat (limited to 'k8s-resource')
| -rw-r--r-- | k8s-resource/tsg-diagnose-client.yaml | 84 | ||||
| -rw-r--r-- | k8s-resource/tsg-diagnose.yaml (renamed from k8s-resource/tsg-diagnose-server.yaml) | 82 |
2 files changed, 82 insertions, 84 deletions
diff --git a/k8s-resource/tsg-diagnose-client.yaml b/k8s-resource/tsg-diagnose-client.yaml deleted file mode 100644 index b93d156..0000000 --- a/k8s-resource/tsg-diagnose-client.yaml +++ /dev/null @@ -1,84 +0,0 @@ ---- -apiVersion: "k8s.cni.cncf.io/v1" -kind: NetworkAttachmentDefinition -metadata: - namespace: tsg-os-system - name: br-dign-client -spec: - config: '{ - "cniVersion": "0.3.0", - "type": "bridge", - "bridge": "br_dign_c", - "ipam": { - "type": "host-local", - "ranges": [ - [ { - "subnet": "192.0.2.0/24", - "rangeStart": "192.0.2.211", - "rangeEnd": "192.0.2.220", - "gateway": "192.0.2.1" - } ] - ] - } - }' ---- -apiVersion: apps/v1 -kind: DaemonSet -metadata: - namespace: tsg-os-system - name: dign-client - labels: - app: dign-client - -spec: - selector: - matchLabels: - app: dign-client - template: - metadata: - labels: - app: dign-client - annotations: - k8s.v1.cni.cncf.io/networks: br-dign-client - spec: - containers: - - name: dign-client - image: "registry.gdnt-cloud.website/tsg/diagnose/client:latest" - imagePullPolicy: Never - workingDir: /opt/dign_client - command: ["/bin/sh", "-c", "update-ca-certificates; tail -f /dev/null"] - securityContext: - privileged: true - volumeMounts: - - name: localtime-node - mountPath: /etc/localtime - readOnly: true - - name: ca-cert-file - mountPath: /usr/local/share/ca-certificates - - name: log-path - mountPath: /opt/dign_client/log - - name: config-path - mountPath: /opt/dign_client/etc/client.conf - subPath: "client.conf" - - name: share-path - mountPath: /opt/dign_client/share - - - volumes: - - name: localtime-node - hostPath: - path: /etc/localtime - - name: ca-cert-file - hostPath: - path: /opt/tsg/tsg-diagnose/etc/.certs_import/certs/sets/current/gen/crt - - name: log-path - hostPath: - path: /opt/tsg/tsg-diagnose/log - - name: config-path - hostPath: - path: /opt/tsg/tsg-diagnose/etc - - name: share-path - hostPath: - path: /opt/tsg/clixon/share ---- - diff --git a/k8s-resource/tsg-diagnose-server.yaml b/k8s-resource/tsg-diagnose.yaml index df285bd..42dd29d 100644 --- a/k8s-resource/tsg-diagnose-server.yaml +++ b/k8s-resource/tsg-diagnose.yaml @@ -3,6 +3,88 @@ apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition metadata: namespace: tsg-os-system + name: br-dign-client +spec: + config: '{ + "cniVersion": "0.3.0", + "type": "bridge", + "bridge": "br_dign_c", + "ipam": { + "type": "host-local", + "ranges": [ + [ { + "subnet": "192.0.2.0/24", + "rangeStart": "192.0.2.211", + "rangeEnd": "192.0.2.220", + "gateway": "192.0.2.1" + } ] + ] + } + }' +--- +apiVersion: apps/v1 +kind: DaemonSet +metadata: + namespace: tsg-os-system + name: dign-client + labels: + app: dign-client + +spec: + selector: + matchLabels: + app: dign-client + template: + metadata: + labels: + app: dign-client + annotations: + k8s.v1.cni.cncf.io/networks: br-dign-client + spec: + containers: + - name: dign-client + image: "registry.gdnt-cloud.website/tsg/diagnose/client:latest" + imagePullPolicy: Never + workingDir: /opt/dign_client + command: ["/bin/sh", "-c", "update-ca-certificates; tail -f /dev/null"] + securityContext: + privileged: true + volumeMounts: + - name: localtime-node + mountPath: /etc/localtime + readOnly: true + - name: ca-cert-file + mountPath: /usr/local/share/ca-certificates + - name: log-path + mountPath: /opt/dign_client/log + - name: config-path + mountPath: /opt/dign_client/etc/client.conf + subPath: "client.conf" + - name: share-path + mountPath: /opt/dign_client/share + + + volumes: + - name: localtime-node + hostPath: + path: /etc/localtime + - name: ca-cert-file + hostPath: + path: /opt/tsg/tsg-diagnose/etc/.certs_import/certs/sets/current/gen/crt + - name: log-path + hostPath: + path: /opt/tsg/tsg-diagnose/log + - name: config-path + hostPath: + path: /opt/tsg/tsg-diagnose/etc + - name: share-path + hostPath: + path: /opt/tsg/clixon/share +--- +apiVersion: "k8s.cni.cncf.io/v1" +kind: NetworkAttachmentDefinition +metadata: + namespace: tsg-os-system name: br-dign-server spec: config: '{ |
