Skip to content

Instantly share code, notes, and snippets.

@pydevops
pydevops / gke-ingress-manged-tls.md
Last active August 10, 2023 09:20
Create a GCP managed TLS certificate for the GKE ingress

GKE ingress in a nutshell

Solution #1 (ManagedCertificate CRD in GKE)

  • GKE with Google-managed SSL certificates
    • Use ManagedCertificate CRD to create a object.
    • Associate the ManagedCertificate object to an Ingress by adding an annotation networking.gke.io/managed-certificates to the Ingress. This annotation is a comma-separated list of ManagedCertificate resources, cert1,cert2,cert3 for example.

Solution #2 (Google Cloud SSL Certificate)

Assumption

@astrobounce
astrobounce / elaticsearch.yml
Created August 21, 2018 18:40
Hot/Warm Node Elasticsearch Configuration
########## Sample elasticsearch.yml ################
cluster.name: < Your Cluster Name >
node.name: < Identified which is generated on installing cluster >
path.data: /data/elasticsearch
path.logs: /var/log/elasticsearch
node.master: false #### < Value Depends on type of node >
node.data: true #### < Value Depends on type of node >
@zthxxx
zthxxx / .screenrc
Last active October 27, 2024 01:27
screen preference
# Install
# curl -sL https://gist.github.com/zthxxx/df7e121048b12c80f260285d88e1091f/raw/.screenrc -o ~/.screenrc
# curl -s https://gist.githubusercontent.com/zthxxx/df7e121048b12c80f260285d88e1091f/raw/.screenrc -o ~/.screenrc
# Shortcut Key binding
# https://www.gnu.org/software/screen/manual/screen.html#Bindkey
# remap prefix key `Ctrl-A` to `Ctrl-S`
@pydevops
pydevops / gcp_ca_cert.md
Last active July 14, 2023 14:12
google cloud architect cert prepare
@j-mprabhakaran
j-mprabhakaran / AWSDevOpsExamTips
Last active May 28, 2022 01:25
AWSDevOpsExamTips
Autoscaling.
◾Understand autoscaling inside and out.
◾Make sure you know the differences between deploying with and without Cloudformation (as there are some deployment methods you can do with Cloudformation that you can’t without) and the command or JSON syntax to perform them.
◾Understand lifecycle hooks and the autoscaling stages they run in
◾Understand launch configurations and how they work and are updated (hint: You must replace them)
◾Understand why you may need to place an instance into STANDBY state
•Elastic Beanstalk.
◾You’ll need to know this to an advanced level.
◾Understand what stacks Beanstalk supports natively and how you would deploy a stack it doesn’t (hint: Use Docker).
@j-mprabhakaran
j-mprabhakaran / AWSPointsToRemember
Created April 15, 2018 11:53
AWSPointsToRemember
1. In AWS batch, you are able to specify minimum, maximum and desired number of CPU's.
2. Amazon EBS-backed EC2 instances boot faster than instance store-backed instances.
3. The operating system offered in Amazon Light sail are Amazon Linux and Ubuntu.
4. AWS Elastic beanstalk is used to spin up infrastructure that is both externally facing and internally facing.
5. SSD-backed Amazon EBS gives you low latency.
6. AWS can only create latency record sets in the AWS region, not in customer location.
7. The only routing protocol that AWS Direct Connect supports is BGP.
8. A private VIF is the logical interface between your on-premises network and AWS resource located in VPC.
9. Cloud front will forward a file to a user as soon as it get it's first bytes. It does no error checking.
10. Origin access identity (OAI) is used to restrict access to your Amazon S3 content.
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 16, 2025 21:12
crack activate Office on mac with license file
@petitviolet
petitviolet / nginx_deployment.yaml
Created March 11, 2018 11:04
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {