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
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: traefik-web-ui | |
namespace: default | |
spec: | |
selector: | |
k8s-app: traefik-ingress-lb | |
ports: |
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
Show hidden characters
{ | |
"presets": ["@babel/env", "@babel/preset-typescript"], | |
"plugins": [ | |
"@babel/proposal-object-rest-spread", | |
["@babel/plugin-proposal-decorators", { "legacy": true }], // credit: https://2ality.com/2019/10/babel-loader-typescript.html | |
["@babel/plugin-proposal-class-properties", { "loose": true }] | |
] | |
} |
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
# vim style tmux config | |
# use C-a, since it's on the home row and easier to hit than C-b | |
set-option -g prefix C-a | |
unbind-key C-a | |
bind-key C-a send-prefix | |
set -g base-index 1 | |
# Easy config reload | |
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." |
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
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | |
kind: Plugin | |
metadata: | |
name: kubeui | |
spec: | |
homepage: https://github.com/kui-shell/plugin-kubeui | |
shortDescription: Pop-up visualizations for kubectl operations | |
description: | | |
This is a kubectl plugin that offers pop-up window visualizations | |
of the standard kubectl operations. For example, in response to a |
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 python | |
try: | |
from urllib.request import urlopen | |
except ImportError: | |
from urllib2 import urlopen | |
import json | |
import sys | |
# Modify COMPONENT_NAME to name your component differently. | |
COMPONENT_NAME = 'Gist' |
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
:hiccup [:iframe { | |
:height 550 | |
:width 750 | |
:scrollbar 0 | |
:srcdoc "<!DOCTYPE html> <div id=\"observablehq-eb3a0382\"> | |
<div class=\"observablehq-chart\"></div> | |
</div> | |
<script type=\"module\"> | |
import {Runtime, Inspector} from \"https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js\"; |
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
{ | |
"files.exclude": { | |
"**/._*": true, | |
"**/*.pyc": {"when": "$(basename).py"}, | |
"**/__pycache__": true | |
}, | |
"python.analysis.disabled": [ | |
"unresolved-import", | |
"use-before-def" | |
], |
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
import pulumi | |
from pulumi import ResourceOptions | |
from pulumi_kubernetes import Provider | |
from pulumi_kubernetes.apps.v1 import Deployment | |
from pulumi_kubernetes.core.v1 import Service | |
from pulumi_azure.core import ResourceGroup | |
from pulumi_azure.role import Assignment | |
from pulumi_azure.containerservice import KubernetesCluster, Registry | |
from pulumi_azure.network import VirtualNetwork, Subnet | |
from pulumi_azuread import Application, ServicePrincipal, ServicePrincipalPassword |
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
apiVersion: argoproj.io/v1alpha1 # Changed from apps/v1 | |
kind: Rollout # Changed from Deployment | |
# ----- Everything below this comment is the same as a deployment ----- | |
metadata: | |
name: example-rollout | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: nginx |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: tiller |
NewerOlder