soniya.rayabagi
Wed Apr 10 2024
chmod 777
is a command used to set permissions on a file or directory in Unix-like operating systems (including Linux and macOS). It grants full read, write, and execute permissions.#devops #FilePermissions
soniya.rayabagi
Mon Apr 08 2024
Kubernetes on Docker Desktop
• Install Docker Desktop
• Enable Kubernetes from docker-desktop setting
• Switch the Kubernetes context to docker-desktop
• Example :
• Instead of using the command
• To install kubectx on Mac:
#devops #kubernetes #dockerdesktop
• Install Docker Desktop
• Enable Kubernetes from docker-desktop setting
• Switch the Kubernetes context to docker-desktop
• Example :
❯ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
docker-desktop docker-desktop docker-desktop
* kind-kube-nginx-cluster kind-kube-nginx-cluster kind-kube-nginx-cluster
❯ kubectl config use-context docker-desktop
Switched to context "docker-desktop".
• Instead of using the command
kubectl config use-context docker-desktop
we can also go with kubectx
to switch between Kubernetes context• To install kubectx on Mac:
brew install kubectx
#devops #kubernetes #dockerdesktop
nisanth
Mon Apr 08 2024
Access Kubernetes dashboard on minikube
To access the dashboard:
This will enable the dashboard add-on, and open the proxy in the default web browser.
#devops #kubernetes
To access the dashboard:
minikube dashboard
This will enable the dashboard add-on, and open the proxy in the default web browser.
#devops #kubernetes
soniya.rayabagi
Fri Apr 05 2024
Today I learnt , REST API endpoints for organization members
• It will List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.
• The token must have the following permission set:
• Request example:
Response
#githubactionspublic #rest api
• It will List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.
• The token must have the following permission set:
members:read
• Request example:
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer " \
-H "X-GitHub-Api-Version: 2022-11-28" \
Response
[
{
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "",
"gravatar_id": "",
"url": "",
"html_url": "",
"followers_url": "",
"following_url": "",
"gists_url": "",
"starred_url": "",
"subscriptions_url": "",
"organizations_url": "",
"repos_url": "",
"events_url": "",
"received_events_url": "",
"type": "User",
"site_admin": false
}
]
#githubactionspublic #rest api
mahesh.bhosle
Fri Apr 05 2024
We can leverage the AWS Systems Manager service to execute the Ansible scripts on the EC2 hosts, this removes the overhead of maintaining SSH keys and other instance details.
How it is done:
• Prerequisites:
◦ EC2 instance should have an IAM role attached for SSM
◦ Ansible should be installed on the instance
• In the AWS System Manager go to State Manager and create a new association
• The association details will include: association name, Document, Ansible playbook, Target selection, schedule, and Rate control
• Based on the Association configuration, the playbook will be executed.
#automation #awsssm #ansible
How it is done:
• Prerequisites:
◦ EC2 instance should have an IAM role attached for SSM
◦ Ansible should be installed on the instance
• In the AWS System Manager go to State Manager and create a new association
• The association details will include: association name, Document, Ansible playbook, Target selection, schedule, and Rate control
• Based on the Association configuration, the playbook will be executed.
#automation #awsssm #ansible
nisanth
Wed Apr 03 2024
Securing Sensitive Data in Kubernetes with Base64 Encoding
Today I learned that the
#devops #kubernetes #encoding
Today I learned that the
base64
command can be used in Kubernetes to encode sensitive data such as passwords and API keys when creating secrets. By encoding the sensitive information in base64 format, it can be safely stored in Kubernetes secrets without exposing it in plaintext. This adds an additional layer of security to the sensitive data used by applications running in Kubernetes clusters. echo -n "some_password" | base64
#devops #kubernetes #encoding
satya
Wed Apr 03 2024
while doing
to fix this just do
#sharp-error #npm #node
npm install
or yarn install
we might run into this error mentioned below:
error /Users//project/node_modules/sharp: Command failed.
Exit code: 127
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
to fix this just do
npm rebuild
& then run npm install
or yarn install
.#sharp-error #npm #node
soniya.rayabagi
Sat Mar 30 2024
git stash
want to store commit temporarily then , stashing will save your modifications and revert your working directory to its clean statesatya
Tue Mar 26 2024
SAP is divided into two types of data:
• Master Data - Consists product data , person data (eg: vendor, customer) or place data.
• Transaction Data - Consists of quotation , sales order , good issue, good receipt , invoice.
#SAP
• Master Data - Consists product data , person data (eg: vendor, customer) or place data.
• Transaction Data - Consists of quotation , sales order , good issue, good receipt , invoice.
#SAP
nisanth
Fri Mar 22 2024
Docker Hub & Pushing Docker Images
• Why We Need Docker Hub: Docker Hub is like a social media platform, but instead of sharing photos or updates, we share Docker images. Docker Hub provides a centralized place for storing and managing these images. We use Docker Hub to:
◦ Share our Docker images with others.
◦ Store different versions of our Docker images.
◦ Access our Docker images from any machine, making deployment and scaling much easier.
◦ Find and use Docker images created by others, which can be very helpful.
• How to Push a Docker Image to Docker Hub: To push a Docker image, we follow a few simple steps:
a. Log In: Just like logging into your favorite app, we log in to Docker Hub on our computer.
b. Tagging: We give our image a label (or a tag) that describes what it is and which version it is—kind of like tagging a friend in a photo
c. Pushing: With our image tagged, we ‘push’ it to Docker Hub, which means uploading it so others can download and use it.
• What Happens After Pushing the Image to Docker Hub: Once the image is pushed:
◦ It’s stored in our Docker Hub repository,
◦ Other people can ‘pull’ the image to their own computers or servers to run the application it contains.
◦ If we update the application, we can push the new version to Docker Hub so everyone can get the update.
◦ We can pull it down on any server
#devops #docker
• Why We Need Docker Hub: Docker Hub is like a social media platform, but instead of sharing photos or updates, we share Docker images. Docker Hub provides a centralized place for storing and managing these images. We use Docker Hub to:
◦ Share our Docker images with others.
◦ Store different versions of our Docker images.
◦ Access our Docker images from any machine, making deployment and scaling much easier.
◦ Find and use Docker images created by others, which can be very helpful.
• How to Push a Docker Image to Docker Hub: To push a Docker image, we follow a few simple steps:
a. Log In: Just like logging into your favorite app, we log in to Docker Hub on our computer.
b. Tagging: We give our image a label (or a tag) that describes what it is and which version it is—kind of like tagging a friend in a photo
docker tag flix-rails:latest nishanthmathiyazhagan/flix-rails:latest
c. Pushing: With our image tagged, we ‘push’ it to Docker Hub, which means uploading it so others can download and use it.
docker push nishanthmathiyazhagan/flix-rails:latest
• What Happens After Pushing the Image to Docker Hub: Once the image is pushed:
◦ It’s stored in our Docker Hub repository,
◦ Other people can ‘pull’ the image to their own computers or servers to run the application it contains.
◦ If we update the application, we can push the new version to Docker Hub so everyone can get the update.
◦ We can pull it down on any server
#devops #docker
Showing 16 to 18 of 71 results