Go to Google Admin Console: admin.google.com Then go to Users menu Now click on Add new user Enter First Name, Surname & Email Alias of the user then click on ADD NEW USER The user is created
From search bar you can search for quota and you can go to all quota In this page you will find the quota & limits for your services You can click on edit quota and increase the quota for particular service You can also create a ticket to increase request …
Go to APIs & Services page from search box or menu Then click on Library Then search for service whose API you want to enable Now select that particular service and click on Enable
Go to Manage Billing Account page: https://console.cloud.google.com/billing Then select your billing account Now you can go to Account Management Select the Project Setting then you will find option to Disable Billing, Change Billing (If you have multiple billing account) & Lock Billing
The purpose of the Google Cloud resource hierarchy is two-fold: Provide a hierarchy of ownership, which binds the lifecycle of a resource to its immediate parent in the hierarchy. Provide attach points and inheritance for access control and organization policies. Assigning Organization Admin Policy Creating a Folder Resource & Project …
Sign in to the Manage billing accounts page in the Google Cloud console. Sign in to Manage billing accounts Click Create account. Enter the Name of the Cloud Billing account. Depending on your configuration, you will also need to select one of the following: Organization: If you see an Organization drop-down, then you must also …
An Organization resource is available for Google Workspace and Cloud Identity customers: Google Workspace: Sign up for Google Workspace. Cloud Identity: Sign up for Cloud Identity. Getting your organization ID To get your organization ID using the Cloud console: Go to the Cloud console: Go to the Cloud console At the top of the …
In order to set up Cloud Identity make sure that you have already created a Google workspace account and you are logged in from the admin user of that workspace account, this is tutorial to setup Google Workspace Go to Cloud Identity page then click on Get Started for free …
Go to workspace.google.com Click on Start Free Trial Here you need to enter your business name and the number of employees who would be using workspace for this example I have used only Just You as the checkbox You will need to select a Region and then you can click …
Setup Open cloudshell Set your working Google Cloud zone by running the following command, substituting the local zone as us-central1-a: gcloud config set compute/zone us-central1-a Get the sample code for creating and running containers and deployments: git clone https://github.com/webmagicinformatica/Managing-Deployments-Using-Kubernetes-Engine.git Create a cluster with five n1-standard-1 nodes (this will take a …
TO install docker-compose, run sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null For permission sudo chmod +x /usr/local/bin/docker-compose Create a symbolic link ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose Check docker-compose version: docker-compose –version
Installing Docker-compose Lets do some changes in application files, Create python app file vim app.py import os from flask import Flask from flask_redis import FlaskRedis app = Flask(__name__) app.config[‘REDIS_URL’] = ‘redis://redis:6379/0’ redis = FlaskRedis(app) @app.route(‘/’) def counter(): return ‘{0} {1}’.format(str(redis.incr(‘web2_counter’)), os.getenv(‘WEB2_COUNTER_MSG’, ”)) save the file ESC + wq! Create python app dependency …
docker system df docker system df -v docker system info docker system prune docker system prune -f docker system prune -a docker container stop web2 redis docker container stop $(docker container ls -a -q)
Lets do some changes in application files, Create python app file vim app.py import os from flask import Flask from flask_redis import FlaskRedis app = Flask(__name__) app.config[‘REDIS_URL’] = ‘redis://redis:6379/0’ redis = FlaskRedis(app) @app.route(‘/’) def counter(): return ‘{0} {1}’.format(str(redis.incr(‘web2_counter’)), os.getenv(‘WEB2_COUNTER_MSG’, ”)) save the file ESC + wq! Create python app dependency definition file vim …
Create a new docker volume named as web2_redis docker volume create web2_redis Get list of docker volumes docker volume ls Inspect docker volumes docker volume inspect web2_redis Run a redis container with new created docker volume attached to it docker container run –rm -itd -p 6379:6379 –name redis –net firstnetwork …
Lets do some changes in application files, Create python app file vim app.py from flask import Flask from flask_redis import FlaskRedis app = Flask(__name__) app.config[‘REDIS_URL’] = ‘redis://redis:6379/0’ redis = FlaskRedis(app) @app.route(‘/’) def counter(): return str(redis.incr(‘web2_counter’)) save the file ESC + wq! Create python app dependency definition file vim requirements.txt Flask==0.12 flask-redis==0.3 save the …
Use below command to create a container with current directory mounted to container, any changes you perform in current directory will reflected inside the container as well docker container run -it -p 5000:5000 -e FLASK_APP=app.py -e FLASK_DEBUG=1 –rm –name web1 -v $PWD:/app web1 -e =execute command in Docker -p = …
Tag image <dockerhub-username>/web with web1 docker image tag <dockerhub-username>/web1 web1 Remove docker image with <dockerhub-username>/web1 docker image rm <dockerhub-username>/web1 Run your docker image, check in browser by putting Public IP followed port 5000 docker container run -it -p 5000:5000 -e FLASK_APP=app.py web1 -e =execute command in Docker -p = Define …