Skip to content

Instantly share code, notes, and snippets.

@incfly
Created March 24, 2020 01:05
Show Gist options
  • Select an option

  • Save incfly/8d43a223bdc6b7e043271f004f3b2f9a to your computer and use it in GitHub Desktop.

Select an option

Save incfly/8d43a223bdc6b7e043271f004f3b2f9a to your computer and use it in GitHub Desktop.
tar -xzf /home/jianfeih/workspace/go/src/istio.io/tools/perf/istio-install/tmp/istio-1.5-alpha.d1b25ad161350973c87bec45a4620c96226f2e46.tgz -C /tmp/tmp.7Jp9J0FD6F --strip-components 1
+ [[ -z '' ]]
+ mv /tmp/tmp.7Jp9J0FD6F/install/kubernetes/helm /home/jianfeih/workspace/go/src/istio.io/tools/perf/istio-install/tmp/1.5-alpha.d1b25ad161350973c87bec45a4620c96226f2e46
+ mv /tmp/tmp.7Jp9J0FD6F/bin/istioctl /home/jianfeih/workspace/go/src/istio.io/tools/perf/istio-install/tmp/1.5-alpha.d1b25ad161350973c87bec45a4620c96226f2e46
+ cp /tmp/tmp.7Jp9J0FD6F/bin/istioctl /home/jianfeih/workspace/go/src/istio.io/tools/perf/istio-install/tmp
cp: cannot stat '/tmp/tmp.7Jp9J0FD6F/bin/istioctl': No such file or directory
ls /tmp/tmp.7Jp9J0FD6F/bin 
➜  istio-install git:(master) 
ls ../1.5-alpha.bd23b16ae76a66c193f24095dfd30031f768e2e0 
README.md  helm-service-account.yaml  istio  istio-cni  istio-init  istioctl
@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author

install_istio_with_helm

  if [[ "${release_ver}" > "1.5" ]];then
    export INSTALL_WITH_ISTIOCTL=true
  fi
https://github.com/istio/tools/blob/cf4101f2761c7ec597e562ae6da41ea09e0549fc/perf/istio-install/setup_istio.sh#L155

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author
istiod:
        cpu: 4800m

https://github.com/istio/tools/pull/677/files updated.

cpu change without noticing.

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author
./setup_istio_operator.sh

+ go run ./cmd/mesh.go manifest apply -f /home/jianfeih/workspace/go/src/istio.io/tools/perf/istio-install/istioctl_profiles/default.yaml --force=true --set meshConfig.rootNamespace=istio-system
Error: failed to generate and apply manifests, error: failed to generate tree from the set overlay, error: bad path=value: meshConfig.rootNamespace=istio-system
Usage:
  mesh manifest apply [flags]

Flags:
      --context string               The name of the kubeconfig context to use
  -f, --filename string              Path to file containing IstioControlPlane CustomResource
      --force                        Proceed even with validation errors
  -h, --help                         help for apply
  -c, --kubeconfig string            Path to kube config
      --readiness-timeout duration   Maximum seconds to wait for all Istio resources to be ready. The --wait flag must be set for this flag to apply (default 5m0s)
  -s, --set strings                  Set a value in IstioControlPlane CustomResource. e.g. --set policy.enabled=true.
                                     Overrides the corresponding path value in the selected profile or passed through IstioControlPlane CR
                                     customization file
      --skip-confirmation            skipConfirmation determines whether the user is prompted for confirmation. 
                                     If set to true, the user is not prompted and a Yes response is assumed in all cases.
  -w, --wait                         Wait, if set will wait until all Pods, Services, and minimum number of Pods of a Deployment are in a ready state before the command exits. It will wait for a maximum duration of --readiness-timeout seconds

Global Flags:
      --dry-run       Console/log output only, make no changes.
      --logtostderr   Send logs to stderr.
      --verbose       Verbose output.

exit status 1

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author
    # export SET_OVERLAY="meshConfig.rootNamespace=istio-system"

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author

go run ./cmd/mesh.go manifest apply -f "${CR_FILENAME}" --force=true
# --set meshConfig.rootNamespace=${defaultNamespace}

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author
  • go run ./cmd/mesh.go manifest apply -f /home/jianfeih/workspace/go/src/istio.io/tools/perf/istio-install/istioctl_profiles/default.yaml --force=
    true
    Error: failed to generate and apply manifests, error: failed to generate manifest: could not unmarshal the overlay file: unknown field "components
    " in v1alpha2.IstioControlPlaneSpec

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author

istio-ingressgateway-77447bbbf6-xdw6g 0/1 Init:0/1 0 23s
istio-pilot-5bf7cf44d-7rsxb 0/1 CrashLoopBackOff 1 21s
istio-pilot-5bf7cf44d-r7xqw 0/1 Error 1 6s
prometheus-5fcfccbb6c-4zb2f 0/1 ContainerCreating 0 22s
➜ operator git:(c3e0b6a1) klon istio-system istio-pilot-5bf7cf44d-7rsxb
Error: unknown flag: --secureGrpcAddr
2020-03-24T01:52:44.306669Z error unknown flag: --secureGrpcAddr

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author

https://github.com/istio/tools/tree/master/perf/benchmark is one way to install istioctl

setup_istio_operator.sh is another.

@incfly

incfly commented Mar 24, 2020

Copy link
Copy Markdown
Author

follow-through above doc is okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment