ves-io-schema-fleet-API-Replace

Examples of replacing fleet

Usecase:

Replace superstore fleet to change the software version

Request using vesctl:

vesctl configuration replace fleet -i fleet.yaml

where file fleet.yaml has following contents (fleet.ReplaceRequest):

metadata:
  name: superstore-fleet
  namespace: system
spec:
  allowAllUsb: {}
  defaultStorageClass: {}
  disableGpu: {}
  interfaceList:
    interfaces:
    - name: int-eth0
      namespace: system
      tenant: acmecorp
    - name: int-eth1
      namespace: system
      tenant: acmecorp
  logsStreamingDisabled: {}
  networkConnectors:
  - kind: network_connector
    name: connect-in-out
    namespace: system
    tenant: acmecorp
  networkFirewall:
  - kind: network_firewall
    name: superstore-firewall
    namespace: system
    tenant: acmecorp
  noBondDevices: {}
  noDcClusterGroup: {}
  noStorageDevice: {}
  noStorageInterfaces: {}
  noStorageStaticRoutes: {}
  volterraSoftwareVersion: 2019-build-9990

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"superstore-fleet","namespace":"system"},"spec":{"volterraSoftwareVersion":"2019-build-9990","networkConnectors":[{"kind":"network_connector","tenant":"acmecorp","namespace":"system","name":"connect-in-out"}],"networkFirewall":[{"kind":"network_firewall","tenant":"acmecorp","namespace":"system","name":"superstore-firewall"}],"interfaceList":{"interfaces":[{"tenant":"acmecorp","namespace":"system","name":"int-eth0"},{"tenant":"acmecorp","namespace":"system","name":"int-eth1"}]},"noBondDevices":{},"noStorageInterfaces":{},"noStorageDevice":{},"defaultStorageClass":{},"noDcClusterGroup":{},"disableGpu":{},"noStorageStaticRoutes":{},"logsStreamingDisabled":{},"allowAllUsb":{}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/fleets/superstore-fleet'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:02 GMT
Vary: Accept-Encoding

{

}