List your current nodes. docker node ls Add a label to a node. docker node update –label-add availability_zone=east <NODE_NAME> docker node update –label-add availability_zone=west <NODE_NAME> View existing labels with: docker node inspect –pretty <NODE_NAME> You can use –constraint when creating a service to restrict which nodes will be used to execute a …
Install the vieux/sshfs plugin on all nodes in the swarm. docker plugin install –grant-all-permissions vieux/sshfs Set up an additional server to use for storage. You can use the Ubuntu 18.04 Bionic Beaver LTS image with a size of Small. On this new storage server, create a directory with a file that can be used for …
Create a compose file for the stack. vi simple-stack.yml version: ‘3’ services: web: image: nginx busybox: image: radial/busyboxplus:curl command: /bin/sh -c “while true; do echo Hello!; sleep 10; done” Deploy the stack and examine it using various commands. docker stack deploy -c simple-stack.yml simple docker stack ls docker stack ps …
Create a simple service running the nginx image. docker service create nginx Create an nginx service with a specified name, multiple replicas, and a published port. docker service create –name nginx –replicas 3 -p 8080:80 nginx Use a template to pass the node hostname to each container as an environment variable. docker service create …
Configuring A Swarm Manager Install Docker on Ubuntu 18.04 Be sure to use the private IP (NOT the public IP) for the –advertise-addr: docker swarm init –advertise-addr <swarm manager private IP> This shows some basic information about the current status of the swarm: docker info List the current nodes in the …
Install required packages: sudo apt-get update sudo apt-get -y install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common Add the Docker GPG key and repo: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository \ “deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable” …
To creating the instance template go to your Compute Engine dashboard and then click on Instance Templates and then click on Create instance template You need to enter the instance template name and then you will need to select the Machine type, for machine type you can select e2-small Then …
Go to the compute engine service page and then click on Create Instance Now on the create instance page you can fill in a lot of details about your instance so let’s start Name: Here you can enter the name of the instance, for example enter the name of the instance as webserver …
Open cloud shell and inside shell run the below command #this will generate a key for a particular user, while creating key certain inputs are as just enter ssh-keygen -t rsa -f ~/userkey -C tom #this will generate a key for a project, while creating key certain inputs are as …
Go to the compute engine service page and then click on Create Instance Now on the create instance page you can fill in a lot of details about your instance so let’s start Name: Here you can enter the name of the instance, for example enter the name of the instance as webserver …
From your compute engine dashboard go to snapshot section and then click on Create Snapshot You need to enter the Name of the snapshot followed by the Source disk You can use the same disk which was created in last demo Additionally you can select the location of the snapshot …
Create & connect to compute engine instance You can put the disk Name and you can select the right region and the zone Note: Make sure that the zone matches the zone where your compute engine instance is created In Disk Source section you can define that you are creating …
Go to the compute engine service page and then click on Create Instance Now on the create instance page you can fill in a lot of details about your instance so let’s start Name: Here you can enter the name of the instance, for example enter the name of the instance as webserver …
Go to the compute engine service page and then click on Create Instance Now on the create instance page you can fill in a lot of details about your instance so let’s start Name: Here you can enter the name of the instance, for example enter the name of the …
Select your Google cloud project Go to identity and access management service Go to audit logs By default all audit logs are enabled for admin rights related actions You can select a service then you can also enable other action logging like admin reads, data read or data right actions …
Select the Project Go to IAM dashboard and Service accounts You can enter the name of the service account and then click on Create and continue In this tab you can assign the roles or the permission for the service account so let’s say that I would be assigning this …
Cloud Talent Solution Actions Service Agents Service Specific Roles
Make sure that you have created the user in Google cloud identity. Go to Google console and select your project Search for Identity and Access Management service click on the Add button Now you will need to enter the user principle which is nothing but the Gmail ID of the user which …