Skip to content

Instantly share code, notes, and snippets.

View seomago's full-sized avatar
:octocat:
Playing with AWS cloud

seomago seomago

:octocat:
Playing with AWS cloud
View GitHub Profile
# Source: https://gist.github.com/vfarcic/c6f369426c5149e3d05132d5e1cda62c
##################################################################
# Single Pane of Glass for Kubernetes Clusters with Clusterpedia #
##################################################################
# Additional Info:
# - Clusterpedia: https://clusterpedia.io
#########
@sidpalas
sidpalas / maintenance-page.yaml
Last active November 13, 2024 23:08
Kubernetes temporary maintenance page
apiVersion: v1
kind: ConfigMap
metadata:
name: maintenance-page
data:
maintenance.html: |-
<!--HTML GOES HERE-->
<!doctype html>
<title>Site Maintenance</title>
<link rel="stylesheet" href="maintenance.css">
@seomago
seomago / bucket1.yaml
Created October 25, 2022 08:01
bucket1.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Template test-MyBucket1 and 2 by manuel.cruanes 2022-09-29
Resources:
MyBucket2:
Type: AWS::S3::Bucket
Properties:
BucketName: photobox-dev-test-my-bucket2
Tags:
-
Key: "Owner"
# Source: https://gist.github.com/4e2fd2696ef7d5ce6a915a2eb2408e17
###################################################################
# How To Manage Production-Grade Kubernetes Clusters With Rancher #
# https://youtu.be/JFALdhtBxR8 #
###################################################################
# Additional Info:
# - Rancher: https://rancher.com/products/rancher
# - Rancher Fleet: GitOps Across A Large Number Of Kubernetes Clusters: https://youtu.be/rIH_2CUXmwM
# Referenced videos:
# - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo
#########
# Setup #
#########
# A kubectl plugin providing diagnostic tools for Kubernetes applications
git clone https://github.com/vfarcic/troubleshoot-demo.git
@dmccuk
dmccuk / Ansible_Assert.txt
Last active December 2, 2024 19:28
Prove ansible did what is said it did!
-- Ansible testing using Assert
When we run Ansible to manage server configurations, we assume (if there is no red errors) that it worked. But if you are developing ansible modules for your systems, and want to take the DevOps approach and work on CICD pipelines, you need to have some tests in there to prove that what you asked ansible to do has actually worked.
One of the best ways to do this within ansible, is to use the Assert module. It asserts that a given expression is true. When you combine this with the output of a command that’s registered to a variable, there is almost no limit to what you can test.
I’m going to use the TDD (Test driven development) method where we create the tests before we start writing any ansible code to manage our systems. I expect the tests to fail. Then we’ll write ansible to pass the tests. That’s it.
This demo will cover the following:
• Create some tests using the command and assert modules.
# Source: https://gist.github.com/f11e690295311d8d7dd53b5128bd6d3e
#####################################
# Tekton vs. Argo Workflows #
# Kubernetes-Native CI/CD Pipelines #
# https://youtu.be/dAUpAq7hfeA #
#####################################
# Referenced videos:
# - Tekton - Kubernetes Cloud-Native CI/CD Pipelines And Workflows: https://youtu.be/7mvrpxz_BfE
##############################################################
# How to run local multi-node Kubernetes clusters using kind #
# https://youtu.be/C0v5gJSWuSo #
##############################################################
#########
# Setup #
#########
# Install kind (https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
# Source: https://gist.github.com/681a5f4455428379e00bc815450e12d8
#############################################
# eksctl #
# How to Create and Manage AWS EKS clusters #
# https://youtu.be/pNECqaxyewQ  #
#############################################
#########
# Setup #