# Cluster Information
kubectl cluster-info > kube-cluster-info.txt
# Nodes
kubectl get nodes > kube-nodes.txt
kubectl describe nodes > kube-nodes-details.txt
# Namespaces
kubectl get namespaces > kube-namespaces.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# | |
# Variables | |
# | |
RESOURCE_GROUP='' | |
LOCATION='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Network/applicationGateways/resourceName", | |
"location": "uksouth", | |
"properties": { | |
"backendAddressPools": [ | |
{ | |
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Network/applicationGateways/resourceName/backendAddressPools/defaultaddresspool", | |
"name": "defaultaddresspool", | |
"properties": { | |
"backendAddresses": [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Encryption | |
*/ | |
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ''; | |
SELECT * FROM sys.symmetric_keys; | |
/* | |
Credential |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
configuration=$(cat ./resources.json) | |
length=$(echo $configuration | jq -r ".clusters | length") | |
for ((i=0; i<length; i++)); do | |
read name location country <<< $(echo $configuration | jq -r ".clusters[$i] | [.name, .location, .country] | @tsv") | |
echo "=> Creating Kubernetes cluster ($country)..." | |
az aks create \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Workspace Deployment" | |
on: | |
push: | |
branches: [ release ] | |
permissions: | |
id-token: write | |
contents: read | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------ | |
// Scopes | |
// ------ | |
targetScope = 'resourceGroup' | |
// --------- | |
// Resources | |
// --------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
curl -fsSL https://tailscale.com/install.sh | sh | |
sudo tailscale up --accept-dns=false --auth-key=<REPLACE> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text.Json; | |
var accessToken = await GetAccessTokenAsync(); | |
async Task<string> GetAccessTokenAsync() | |
{ | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
name: Example | |
permissions: | |
id-token: write |
NewerOlder