Having problems downloading rancher to my machine - linux

I hope all is well with this pandemic going on. To get to the chase, I'm trying to install rancher on my mac and I've been stuck for the longest at this point. I believe I have everything downloaded properly. Is there something that I'm missing?
this is running on redhat os linux btw
and this is the command that I am trying to run: ./kubectl -n cattle-system apply -R -f ./rancher
and this is a look at my directory
Thank You So Much!
error validating "rancher/Chart.yaml": error validating data: kind not set; [![enter image description here][1]][1]if you choose to ignore these errors, turn validation off with --validate=false
error parsing rancher/templates/clusterRoleBinding.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error parsing rancher/templates/deployment.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error parsing rancher/templates/ingress.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error parsing rancher/templates/issuer-letsEncrypt.yaml: json: line 0: invalid character '{' looking for beginning of object key string
error parsing rancher/templates/issuer-rancher.yaml: json: line 0: invalid character '{' looking for beginning of object key string
error parsing rancher/templates/service.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error parsing rancher/templates/serviceAccount.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error validating "rancher/values.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false

You should follow the installation instructions for HA here: https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/ or for standalone mode here: https://rancher.com/docs/rancher/v2.x/en/installation/other-installation-methods/single-node-docker/
I guess you have downloaded the rancher helm chart directory and trying to install it using kubectl, which wouldn't work.
Under the HA instructions, you will find the helm install command.

Related

Invalid JSON throws error on the wrong line

I am trying to create a JSON validating script. I want to create a custom message when there is a syntax error in the JSON. But when I import the invalid JSON the line of the error is wrong.
the error is on line 11
When I run this script I get

Receiving a parsing error while using Checkov

Below is an attempt to run a checkov scan on a plan file
terraform init
terraform plan -out tf.plan
terraform show -json tf.plan > tf.json
checkov -f tf.json`
Below is the beginning of what the output shows:
cloudformation scan results:
Passed checks: 0, Failed checks: 0, Skipped checks: 0, Parsing errors: 1
Error parsing file tf.json
terraform_plan scan results:
Passed checks: 32, Failed checks: 4, Skipped checks: 0
I am trying to remove the Parsing Error from file tf.json.
The JSON file is located in the link https://terraform-plan-file-1.s3.amazonaws.com/tf.json.
The closest thing to my error that I found was in the link below
https://issueexplorer.com/issue/bridgecrewio/checkov/1903
However removing nulls manually does not seem like a good fix. Also if I remove them, what should I replace them with?
If you're scanning a plan file, I think it makes sense to specify the framework flag like so:
checkov -f tfplan.json --framework terraform_plan
That should get rid of the parsing error. The parsing error occurs since checkov tries to scan the json plan file assuming it's cloudformation json and fails.

Openstack installation error with nova and authentification

This is the first time i'm using openstack, I'm really a new one, I'm doing right now an OpenStack packstack installation, I've generated an answer file in which i specify the following parameters : (notice that I've followed a website doing that i don't know exactly what does all of these parameters means)
CONFIG_PROVISION_DEMO=n
CONFIG_NEUTRON_ML2_TYPE_DRIVERS=flat,vxlan
CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vxlan
CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch
CONFIG_NEUTRON_L2_AGENT=openvswitch
CONFIG_NEUTRON_OVS_EXTERNAL_PHYSNET=extnet
CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=extnet:br-ex
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:em1
I'm getting the following error :
ERROR : Error appeared during Puppet run: 10.53.193.172_controller.pp Notice: /Stage[main]/Nova::Db::Sync/Exec[nova-db-sync]/returns: Error: (pymysql.err.OperationalError) (1045, u"Access denied for user 'nova'#'10.53.193.172' (using password: YES)") (Background on this error at: sqlalche.me/e/e3q8) You will find full trace in log /var/tmp/packstack/20210401-074033-eKhyZ8/manifests/10.53.193.172_controller.pp.log
I've search how to solve it,and i didn't find anything helpful, so i ignored it and I've try to re-run the packstack --answer-file=answerfile.txt, and I'm getting this time a new error :
ERROR : Error appeared during Puppet run: 10.53.193.172_controller.pp
Error: Failed to apply catalog: Could not authenticate
You will find full trace in log /var/tmp/packstack/20210401-082518-KWFGCT/manifests/10.53.193.172_controller.pp.log
Please check log file /var/tmp/packstack/20210401-082518-KWFGCT/openstack-setup.log for more information
Any help, please !

Been running into the following error while creating a pod in minikube

kubectl create -f myfirstpod.yaml
error: error validating "myfirstpod.yaml": error validating data: ValidationError(Pod.spec.containers[0].ports[0]): invalid type for io.k8s.api.core.v1.ContainerPort: got "string", expected "map"; if you choose to ignore these errors, turn validation off with --validate=false
This is the error i ran into
I searched alot but could not find the answer to this.
I think that my yaml format is right.
This is the image of my yaml code
You need a space after the colon. containerPort: 80, not containerPort:80. YAML is whitespace-sensitive.

Unable to save the changes in SublimeLinter.sublime.setting-User after making changes

I keep getting this error:
Error trying to parse settings: Expected character in Packages\User\SublimeLinter.sublime-settings:69:2
I am attaching the screenshots, also I am running version 3.1.1 build 3176.
I added/made changes here
"error_color": "D02000"
Here is my code for user settings:
Error

Resources