Skip to content

Instantly share code, notes, and snippets.

@Smana
Smana / values.yaml
Created December 9, 2019 07:43
vitess_mem_mysql_issue
topology:
cells:
- name: "zone1"
etcd:
replicas: 3
vtctld:
replicas: 1
vtgate:
replicas: 2
mysqlProtocol:
topology:
cells:
- name: "zone1"
etcd:
replicas: 3
vtctld:
replicas: 1
vtgate:
replicas: 2
mysqlProtocol:
@Smana
Smana / gist:03020a19ab055238aaa907a25457ce8c
Last active March 9, 2019 08:04
servicerole-serviceaccount-nats
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Metadata",
"auditID": "452f37bb-1055-43a2-8931-18d97b1fa4b4",
"stage": "RequestReceived",
"requestURI": "/api/v1/namespaces/default/secrets/nats-user-nats-cluster-bound-token",
"verb": "get",
"user": {
"username": "system:serviceaccount:default:nats-operator",
@Smana
Smana / debug_ing.log
Created March 3, 2017 21:05
debug log ingress issue
I0303 20:56:21.016648 1 controllermanager.go:87] v1.5.2
I0303 20:56:21.017708 1 controllermanager.go:149] Loading client config for cluster controller "cluster-controller"
I0303 20:56:21.021040 1 controllermanager.go:151] Running cluster controller
I0303 20:56:21.021332 1 reflector.go:196] Starting reflector *v1beta1.Cluster (0s) from k8s.io/kubernetes/federation/pkg/federation-controller/cluster/clustercontroller.go:113
I0303 20:56:21.021425 1 reflector.go:234] Listing and watching *v1beta1.Cluster from k8s.io/kubernetes/federation/pkg/federation-controller/cluster/clustercontroller.go:113
I0303 20:56:21.023198 1 clouddns.go:86] Using DefaultTokenSource &oauth2.reuseTokenSource{new:google.computeSource{account:""}, mu:sync.Mutex{state:0, sema:0x0}, t:(*oauth2.Token)(nil)}
I0303 20:56:21.023357 1 clouddns.go:100] Successfully got DNS service: &{0xc42021fb60 https://www.googleapis.com/dns/v1/projects/ 0xc420094258 0xc420094260 0xc420094268 0xc420094270}
I0303 20:56:21
@Smana
Smana / Kubernetes network benchmarks
Last active February 29, 2016 08:28
Kubernetes network benchmarks
kubernetes network performance tests
========
These are pretty simple benchmarks.
The main purpose is to give an overall comparison between 3 network plugins that we currently support on the project [kubespray.io](http://kubespray.io):
* **Flannel** v0.5.5
* **Weave** v1.4.4
@Smana
Smana / debuglog_segfaults
Created July 23, 2015 13:01
rsyslog segfault
This file has been truncated, but you can view the full file.
5553.379927781:main thread : rsyslogd 8.10.0 startup, module path '', cwd:/var/spool/rsyslog
5553.380157808:main thread : caller requested object 'net', not found (iRet -3003)
5553.380186591:main thread : Requested to load module 'lmnet'
5553.380201781:main thread : loading module '/usr/lib/rsyslog/lmnet.so'
5553.380425657:main thread : module lmnet of type 2 being loaded (keepType=0).
5553.380455754:main thread : entry point 'isCompatibleWithFeature' not present in module
5553.380466890:main thread : entry point 'setModCnf' not present in module
5553.380475324:main thread : entry point 'getModCnfName' not present in module
#cloud-config
hostname: coreos0
users:
- name: core
passwd: $6$rounds=4096$euhgcZSU7A0$pvKQozbZ/9PtrilpQhSKyyGMf7BZzjW7JT7nBWKSSphWUFd4bXX7ck89UX6K4S/4gSq.Z0lPN8Uj3DQAnDdEN/
groups:
- sudo
- docker
-- Logs begin at Fri 2015-07-10 12:46:11 UTC, end at Fri 2015-07-10 13:02:25 UTC. --
Jul 10 12:46:17 coreos0 systemd[1]: Started Early Docker Application Container Engine.
Jul 10 12:46:17 coreos0 systemd[1]: Starting Early Docker Application Container Engine...
Jul 10 12:46:17 coreos0 systemd[1]: Starting Network fabric for containers...
Jul 10 12:46:18 coreos0 etcdctl[606]: Error: 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]
Jul 10 12:46:18 coreos0 systemd[1]: flanneld.service: Control process exited, code=exited status=4
Jul 10 12:46:18 coreos0 systemd[1]: Failed to start Network fabric for containers.
Jul 10 12:46:18 coreos0 systemd[1]: flanneld.service: Unit entered failed state.
Jul 10 12:46:18 coreos0 systemd[1]: flanneld.service: Failed with result 'exit-code'.
Jul 10 12:46:18 coreos0 systemd[1]: Started Docker Application Container Engine.
#cloud-config
hostname: coreos1
users:
- name: core
passwd: $6$rounds=4096$euhgcZSU7A0$pvKQozbZ/9PtrilpQhSKyyGMf7BZzjW7JT7nBWKSSphWUFd4bXX7ck89UX6K4S/4gSq.Z0lPN8Uj3DQAnDdEN/
groups:
- sudo
- docker
@Smana
Smana / rsyslog-action.log
Created March 13, 2015 09:43
rsyslog : Debug issue #96
9540.732263460:main thread : rsyslogd 8.8.0.ad1 startup, module path '', cwd:/var/spool/rsyslog
9540.732365949:main thread : caller requested object 'net', not found (iRet -3003)
9540.732379612:main thread : Requested to load module 'lmnet'
9540.732387761:main thread : loading module '/usr/lib/rsyslog/lmnet.so'
9540.732490935:main thread : module lmnet of type 2 being loaded (keepType=0).
9540.732499873:main thread : entry point 'isCompatibleWithFeature' not present in module
9540.732504455:main thread : entry point 'setModCnf' not present in module
9540.732508820:main thread : entry point 'getModCnfName' not present in module
9540.732513121:main thread : entry point 'beginCnfLoad' not present in module