# 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
#!/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
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 |
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
// --------- | |
// Resources | |
// --------- | |
resource webhook 'Microsoft.Resources/deployments@2021-04-01' = { | |
name: 'Microsoft.Bicep.Webhook' | |
properties: { | |
mode: 'Incremental' | |
templateLink: { | |
uri: url |
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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" | |
"time" |
NewerOlder