Create an App[[email protected] ~]# kubectl run nginx--replicas=3 --labels="app=nginx-example" --image=nginx:1.10 --port=Replicas: 3 copies, default 1 Labels: identity recognition attribute, Image: Download from hub by defaultView Apps[Email protected] ~]# KubectlGetAll NAME ' ready STATUS ' restarts age pod/nginx-f95d765f9-bxgv90/1Containercreating02m pod/nginx-f95d765f9-pdq4x0/1Containercreating02m pod/nginx-f95d765f9-znxw20/1Containercreating02m NAME TYPE
: containers: -name:kube-tomcat image:docker.io/chenyufeng/tomcat-centos imagepullpolicy:always ports: -containerport:8080 nbSp;protocol:tcp args: # uncomment the following line to manually specify Kubernetes API server Host NBSP;NBSP;NBSP;N bsp;# If not specified, Dashboard'll attempt to auto discover the API server and con Nect # to it. Uncomment only if the default is does not work. ---apiserver-host=http://47.97.90.38:8080## Please revise for
Apiversion:v1Kind:replicationcontrollerMetadataName:mywebSpec: //spec is a concrete description of the RC object Replicas: 5SelectorApp:mywebTemplateMetadataLabels://selector, used to select the object'sApp:myweb//I chose the pod labeled App:myweb. Spec: //specific description of the pod template containers: -image:kubeguide/tomcat-app:v1 16 name:myweb /span> resources: Limits:
, theauthorized_keys file appears under SSH. 5. Then copy the Authorized_keys file under the. SSH directory of the first machine to the. SSH directory of the second computer, such as: SCP Authorized_keys [Email protected]:~/.ssh/6. Next to the. SSH directory of the second machine, you will find the file-authorized_keys just transferred, and then execute the command to add the second computer's public key, such as: Cat Id-rsa.pub >> Authorized_keys.7. Transfer the newly generated authorized_keys
Tags: image share picture Mangodb renaming learn Post blog nbsp clickMongoDB Atlas is a cloud service for MongoDB, built on Amazon's AWS, MongoDB allows users to create a free cluster on top for learning to use.1. Sign up for MongoDB Cloud account: Access www.mongodb.com/cloud/, click Get Start Free2. Give the project a name after registration (support renaming)3. Create a new
Tags: ssh directory gen key cat did not create a public key download installationFirst detect if there is SSH1. If you do not have the download installed, you can create the. ssh folder in your home directorymkdir ~/.ssh2. Generate keySSH-KEYGEN-T RSA3. Write the current public key to the Authorized_keysCat Id-rsa.pub >> Authorized_keys4. After writing, copy the Authorized_keys to the next computer's ~/.ssh folder to overwrite5. Connect to the next computer write the public key of the next compu
assumption that SSH does not exist then it is not installed server through the sudo apt-get install openssh-server command installation can beSixth step: Solve Agent admitted failure to sign using the keyAssuming this error occurs, you need to run Ssh-add ~/.ssh/id_rsa on all nodes to add SSH to the private key. At this point, you are done. You should be able to use SSH masternode/slavenode1/slavenode2 to avoid password with each other on a random machine!!!Copyright notice: This article Bo Mas
are appended to the Authorized_keys file, so masternode authorized_keys files contain the public key of all nodes:cat ~/.ssh/temp1 >> ~/.ssh/authorized_keyscat ~/.ssh/temp2 >> ~/.ssh/authorized_keysRM ~/.ssh/temp1RM ~/.ssh/temp2Distribute the merged Authorized_keys files to each node in the Masternode:SCP ~/.ssh/authorized_keys slavenode1:~/.ssh/SCP ~/.ssh/authorized_keys slavenode2:~/.ssh/Fourth Step: All system configuration/etc/ssh/sshd_config file, make the system use public key authenticat
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.