(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:MASTER_ADDRESS) op: Equal rhs: { (BracedVarSub token: <VSub_Number 1> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(DQ (8.8.8.18))}) spids: [45 51] ) } spids: [44] ) ] spids: [44] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:NODE_ADDRESS) op: Equal rhs: { (BracedVarSub token: <VSub_Number 2> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(DQ (8.8.8.20))}) spids: [54 60] ) } spids: [53] ) ] spids: [53] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DNS_SERVER_IP) op: Equal rhs: { (BracedVarSub token: <VSub_Number 3> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(DQ (192.168.3.100))}) spids: [63 69] ) } spids: [62] ) ] spids: [62] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DNS_DOMAIN) op: Equal rhs: { (BracedVarSub token: <VSub_Number 4> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(DQ (cluster.local))}) spids: [72 78] ) } spids: [71] ) ] spids: [71] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KUBECONFIG_DIR) op: Equal rhs: { (BracedVarSub token: <VSub_Name KUBECONFIG_DIR> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(Lit_Slash /) (opt) (Lit_Slash /) (kubernetes) (Lit_Slash /) (cfg)} ) spids: [81 90] ) } spids: [80] ) ] spids: [80] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("apiVersion: v1\n") ("kind: Config\n") ("clusters:\n") (" - cluster:\n") (" server: http://") (${ VSub_Name MASTER_ADDRESS) (":8080/\n") (" name: local\n") ("contexts:\n") (" - context:\n") (" cluster: local\n") (" name: local\n") ("current-context: local\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [98] ) (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ (${ VSub_Name KUBECONFIG_DIR) (/kubelet.kubeconfig))} spids: [101] ) ] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("# --logtostderr=true: log to standard error instead of files\n") ("KUBE_LOGTOSTDERR=") (Right_DoubleQuote "\"") ("--logtostderr=true") (Right_DoubleQuote "\"") ("\n") ("\n") ("# --v=0: log level for V logs\n") ("KUBE_LOG_LEVEL=") (Right_DoubleQuote "\"") ("--v=4") (Right_DoubleQuote "\"") ("\n") ("\n") ( "# --address=0.0.0.0: The IP address for the Kubelet to serve on (set to 0.0.0.0 for all interfaces)\n" ) ("NODE_ADDRESS=") (Right_DoubleQuote "\"") ("--address=") (${ VSub_Name NODE_ADDRESS) (Right_DoubleQuote "\"") ("\n") ("\n") ("# --port=10250: The port for the Kubelet to serve on. Note that ") (Right_DoubleQuote "\"") ("kubectl logs") (Right_DoubleQuote "\"") (" will not work if you set this flag.\n") ("NODE_PORT=") (Right_DoubleQuote "\"") ("--port=10250") (Right_DoubleQuote "\"") ("\n") ("\n") ("# --hostname-override=") (Right_DoubleQuote "\"") (Right_DoubleQuote "\"") ( ": If non-empty, will use this string as identification instead of the actual hostname.\n" ) ("NODE_HOSTNAME=") (Right_DoubleQuote "\"") ("--hostname-override=") (${ VSub_Name NODE_ADDRESS) (Right_DoubleQuote "\"") ("\n") ("\n") ("# Path to a kubeconfig file, specifying how to connect to the API server.\n") ("KUBELET_KUBECONFIG=") (Right_DoubleQuote "\"") ("--kubeconfig=") (${ VSub_Name KUBECONFIG_DIR) (/kubelet.kubeconfig) (Right_DoubleQuote "\"") ("\n") ("\n") ( "# --allow-privileged=false: If true, allow containers to request privileged mode. [default=false]\n" ) ("KUBE_ALLOW_PRIV=") (Right_DoubleQuote "\"") ("--allow-privileged=false") (Right_DoubleQuote "\"") ("\n") ("\n") ("# DNS info\n") ("KUBELET__DNS_IP=") (Right_DoubleQuote "\"") ("--cluster-dns=") (${ VSub_Name DNS_SERVER_IP) (Right_DoubleQuote "\"") ("\n") ("KUBELET_DNS_DOMAIN=") (Right_DoubleQuote "\"") ("--cluster-domain=") (${ VSub_Name DNS_DOMAIN) (Right_DoubleQuote "\"") ("\n") ("\n") ("# Add your own!\n") ("KUBELET_ARGS=") (Right_DoubleQuote "\"") (Right_DoubleQuote "\"") ("\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [128] ) (Redir op_id:Redir_Great fd:-1 arg_word:{(/opt/kubernetes/cfg/kubelet)} spids:[131]) ] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KUBELET_OPTS) op: Equal rhs: { (DQ (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{KUBE_LOGTOSTDERR} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{KUBE_LOG_LEVEL} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{NODE_ADDRESS} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{NODE_PORT} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{NODE_HOSTNAME} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{KUBELET_KUBECONFIG} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{KUBE_ALLOW_PRIV} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{KUBELET__DNS_IP} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ("{KUBELET_DNS_DOMAIN} ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\\">) ("\n") (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) (KUBELET_ARGS) ) } spids: [224] ) ] spids: [224] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("[Unit]\n") ("Description=Kubernetes Kubelet\n") ("After=docker.service\n") ("Requires=docker.service\n") ("\n") ("[Service]\n") ("EnvironmentFile=-/opt/kubernetes/cfg/kubelet\n") ("ExecStart=/opt/kubernetes/bin/kubelet ") (${ VSub_Name KUBELET_OPTS) ("\n") ("Restart=on-failure\n") ("KillMode=process\n") ("\n") ("[Install]\n") ("WantedBy=multi-user.target\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [279] ) (Redir op_id: Redir_Great fd: -1 arg_word: {(/usr/lib/systemd/system/kubelet.service)} spids: [282] ) ] ) (C {(systemctl)} {(daemon-reload)}) (C {(systemctl)} {(enable)} {(kubelet)}) (C {(systemctl)} {(restart)} {(kubelet)}) ] )