This file contains hidden or 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
# 현재 버그(?) 가 있어, 원래 relabel config를 그대로 옮기면 prometheus env에 target_label이 들어가지 않는 이상한 현상이 있다. | |
apiVersion: monitoring.coreos.com/v1 | |
kind: ServiceMonitor | |
metadata: | |
name: envoy-stats-monitor | |
namespace: default | |
labels: | |
app: monitoring | |
monitoring: istio-proxies | |
spec: |
This file contains hidden or 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: monitoring.coreos.com/v1 | |
kind: Prometheus | |
metadata: | |
labels: | |
owner: alicek106 | |
name: prometheus | |
namespace: default | |
spec: | |
alerting: | |
alertmanagers: |
This file contains hidden or 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
from couchbase.cluster import Cluster | |
from couchbase.cluster import PasswordAuthenticator | |
cluster = Cluster('couchbase://couchbase') | |
authenticator = PasswordAuthenticator('admin', 'testpassword') | |
# from couchbase.admin import Admin | |
# adm = Admin('admin', 'testpassword', host='couchbase', port=8091) | |
# adm.bucket_create('alice-bucket-test', bucket_type='couchbase') | |
cluster.authenticate(authenticator) |
This file contains hidden or 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ingress-annotation-test-flask | |
labels: | |
app: ingress-annotation-test-flask | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains hidden or 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: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: sample-app-virtualservice | |
namespace: default | |
spec: | |
gateways: | |
- sample-app-gateway | |
hosts: |
This file contains hidden or 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: networking.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: sample-app-gateway | |
namespace: default | |
spec: | |
selector: | |
istio: ingressgateway | |
servers: | |
- hosts: |
This file contains hidden or 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ingress-annotation-test-spring | |
namespace: default | |
labels: | |
app: ingress-annotation-test-spring | |
spec: | |
replicas: 1 | |
selector: |
This file contains hidden or 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: apps/v1 | |
kind: DaemonSet | |
metadata: | |
labels: | |
app: jaeger | |
app.kubernetes.io/component: agent | |
app.kubernetes.io/instance: jaeger-allinone | |
app.kubernetes.io/managed-by: jaeger-operator | |
app.kubernetes.io/name: jaeger-allinone-agent | |
app.kubernetes.io/part-of: jaeger |
This file contains hidden or 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
terraform { | |
required_version = ">= 0.12.0" | |
} | |
module "eks" { | |
source = "terraform-aws-modules/eks/aws" | |
cluster_name = "alicek106-cluster" | |
subnets = ["subnet-A", "subnet-B", "subnet-C"] | |
manage_aws_auth = true | |
version = "~> 7.0.0" |
This file contains hidden or 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
#requires -version 2 | |
Param( | |
[Parameter(ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True,HelpMessage='Enter the one or more hosts')] | |
[Alias('ComputerName','MachineName','Server','Host')] | |
[switch]$ExportToCsv, | |
[string]$ExportToCSVPath = '.' | |
) | |
if (!([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]'Administrator')) |