Skip to content

Instantly share code, notes, and snippets.

View jianchen2580's full-sized avatar

Jian Chen jianchen2580

  • Cisco Systems
  • Melbourne
View GitHub Profile
If you are receiving an error that the private doesn't match the certificate or that a certificate that you installed to a site is not trusted, try one of these commands. If you are trying to verify that an SSL certificate is installed correctly, be sure to check out the SSL Checker.
Check an MD5 hash of the public key to ensure that it matches with what is in a CSR or private key
`
openssl x509 -noout -modulus -in certificate.crt | openssl md5
openssl rsa -noout -modulus -in privateKey.key | openssl md5
openssl req -noout -modulus -in CSR.csr | openssl md5
`
Check an SSL connection. All the certificates (including Intermediates) should be displayed
openssl s_client -connect www.paypal.com:443
apiVersion: v1
kind: Service
metadata:
name: zk-headless
labels:
app: zk-headless
spec:
ports:
- port: 2888
name: server

zookeeper

Headless Service - zk-headless ConfigMap - zk-config PodDisruptionBudget - zk-budget StatefulSet - zk

watch the StatefulSet controller create

Kubernetes Installation with Vagrant & CoreOS

Vagrant和CoreOS部署多节点k8s集群.

Install Prerequisites

  • git

  • Vagrant

  • kubectl

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
name: prometheus-deployment
name: prometheus
spec:
replicas: 1
template:
func main() {
ctx := context.Background()
// trap Ctrl+C and call cancel on the context
ctx, cancel := context.WithCancel(ctx)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
defer func() {
signal.Stop(c)
# chef-server
https://www.digitalocean.com/community/tutorial_series/getting-started-managing-your-infrastructure-using-chef
# knife cookbook
## prism cookbook
## third party cookbooks
# chef workflow
## bootstrap a node
## attribute role/env/default/overrite
# knife cheat
## Search Examples
knife search "name:ip*"
knife search "platform:ubuntu*"
knife search "platform:*" -a macaddress
knife search "platform:ubuntu*" -a uptime
knife search "platform:ubuntu*" -a virtualization.system
knife search "platform:ubuntu*" -a network.default_gateway
commit a621a043beecc78157cb8f1c54dd61054b003537
Author: Jian Chen <[email protected]>
Date: Mon Jun 20 20:26:22 2016 +0800
improve prism message grok pattern
diff --git a/metadata.rb b/metadata.rb
index 3711cf5..8663ad9 100644
--- a/metadata.rb
+++ b/metadata.rb
diff --git a/metadata.rb b/metadata.rb
index f0a5b4a..84c9aec 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -4,7 +4,7 @@ maintainer_email '[email protected]'
license 'all_rights'
description 'Installs/Configures tropo-elasticsearch'
long_description 'Installs/Configures tropo-elasticsearch'
-version '0.1.0'
+version '0.1.8'