Skip to content

Instantly share code, notes, and snippets.

Xueshan Feng xueshanf

Block or report user

Report or block xueshanf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:41e6666c00053de8ede17268162e101e
$ journalctl |grep -B 10 guestbook-67f65745c-cjpf4
--
May 07 06:17:45 ip-10-10-93-194.us-west-2.compute.internal dhclient[3456]: XMT: Solicit on eth0, interval 111230ms.
May 07 06:17:59 ip-10-10-93-194.us-west-2.compute.internal kubelet[4365]: I0507 06:17:59.016255 4365 reconciler.go:217] operationExecutor.VerifyControllerAttachedVolume started for volume "default-token-8t6sp" (UniqueName: "kubernetes.io/secret/6368583c-51be-11e8-8c05-06c1c5de4864-default-token-8t6sp") pod "guestbook-67f65745c-qx7rp" (UID: "6368583c-51be-11e8-8c05-06c1c5de4864")
May 07 06:17:59 ip-10-10-93-194.us-west-2.compute.internal systemd[1]: Started Kubernetes transient mount for /var/lib/kubelet/pods/6368583c-51be-11e8-8c05-06c1c5de4864/volumes/kubernetes.io~secret/default-token-8t6sp.
May 07 06:17:59 ip-10-10-93-194.us-west-2.compute.internal systemd[1]: Starting Kubernetes transient mount for /var/lib/kubelet/pods/6368583c-51be-11e8-8c05-06c1c5de4864/volumes/kubernetes.io~secret/default-token-8t6sp.
May 07 06:17:59 ip-10-10-93-
View ski-checklist.md

Travel

  • Currency
  • Passport

Outdoor

  • Boots
  • Gloves
  • Goggles
  • Hats
  • Helmet
View keybase.md

Keybase proof

I hereby claim:

  • I am xueshanf on github.
  • I am xueshanf (https://keybase.io/xueshanf) on keybase.
  • I have a public key ASDhMpAFMJk5yu-PkCI_ODDeEQbM2svyV8gRCpBJ_GLUjQo

To claim this, I am signing this object:

@xueshanf
xueshanf / extract_kubecfg_cert.sh
Last active Sep 14, 2019
Extract kubernetes cluster credentials from kubecfg
View extract_kubecfg_cert.sh
#!/bin/bash
# Input: ./extract_kubecfg_cert.sh my-cluster-name username
# Output: ./my-cluster-name-ca.crt ./username.crt ./username.key
# Exit on error
abort(){
echo $1 && exit 1
}
# Prerequistes
View lego-admin.sh
#!/bin/bash
#
# Lego-admin.sh - create, renew, revoke certificates
#
### START CONFIGURATION ###
# Where lego stores certificattes
LEGO_HOME=/efs/lego
certificates=$LEGO_HOME/certificates
View verify-haproxy-pem.sh
#!/bin/bash
# Script to verify key, cert. Generate a pem bundle for haproxy.
AWS_PROFILE=${AWS_PROFILE:-NODEFAULT}
CERT_BUCKET=${CERT_BUCKET:-DODEFAULT}
fqdn=$1
shortname=${fqdn/.example.com/}
# Error checking
View gist:01c11d9727d4ed5f9fef
resource "aws_autoscaling_group" "hosting" {
name = "hosting"
availability_zones = [ "us-west-2a", "us-west-2b", "us-west-2c"]
max_size = 9
min_size = 3
desired_capacity = 3
health_check_type = "EC2"
force_delete = true
View Yostemite-2015.md

Food

  • nuts
  • tea
  • bagels, cream
  • salt, oil
  • chicken drumsticks
  • whole wheat bread, cheese, ham
  • vegetables
  • instant noodles
You can’t perform that action at this time.