Skip to content

Instantly share code, notes, and snippets.

@hasbro17
Last active June 28, 2017 23:52
Show Gist options
  • Save hasbro17/9d10da479a2c024caf508e4973e8ede0 to your computer and use it in GitHub Desktop.
Save hasbro17/9d10da479a2c024caf508e4973e8ede0 to your computer and use it in GitHub Desktop.
Starting audit logs for self-hosted etcd cluster: example-etcd-cluster"
time="2017-06-28T20:20:04Z" level=info msg="created pod (example-etcd-cluster-0000) with spec: {
"volumes": [
{
"name": "etcd-data",
"emptyDir": {}
}
],
"containers": [
{
"name": "etcd",
"image": "quay.io/coreos/etcd:v3.1.8",
"command": [
"/bin/sh",
"-ec",
"sleep 5; /usr/local/bin/etcd --data-dir=/var/etcd/data --name=example-etcd-cluster-0000 --initial-advertise-peer-urls=http://example-etcd-cluster-0000.example-etcd-cluster.e2e-local.svc.cluster.local:2380 --listen-peer-urls=http://0.0.0.0:2380 --listen-client-urls=http://0.0.0.0:2379 --advertise-client-urls=http://example-etcd-cluster-0000.example-etcd-cluster.e2e-local.svc.cluster.local:2379 --initial-cluster=example-etcd-cluster-0000=http://example-etcd-cluster-0000.example-etcd-cluster.e2e-local.svc.cluster.local:2380 --initial-cluster-state=new --initial-cluster-token=f85f9119-d61f-42d9-8897-ba213b1e69bb"
],
"ports": [
{
"name": "server",
"containerPort": 2380,
"protocol": "TCP"
},
{
"name": "client",
"containerPort": 2379,
"protocol": "TCP"
}
],
"resources": {},
"volumeMounts": [
{
"name": "etcd-data",
"mountPath": "/var/etcd"
}
],
"livenessProbe": {
"exec": {
"command": [
"/bin/sh",
"-ec",
"ETCDCTL_API=3 etcdctl get foo"
]
},
"initialDelaySeconds": 10,
"timeoutSeconds": 10,
"periodSeconds": 60,
"failureThreshold": 3
}
}
],
"restartPolicy": "Never",
"hostname": "example-etcd-cluster-0000",
"subdomain": "example-etcd-cluster"
}
"
time="2017-06-28T20:20:12Z" level=info msg="created pod (example-etcd-cluster-0001) with spec: {
"volumes": [
{
"name": "etcd-data",
"emptyDir": {}
}
],
"containers": [
{
"name": "etcd",
"image": "quay.io/coreos/etcd:v3.1.8",
"command": [
"/bin/sh",
"-ec",
"sleep 5; /usr/local/bin/etcd --data-dir=/var/etcd/data --name=example-etcd-cluster-0001 --initial-advertise-peer-urls=http://example-etcd-cluster-0001.example-etcd-cluster.e2e-local.svc.cluster.local:2380 --listen-peer-urls=http://0.0.0.0:2380 --listen-client-urls=http://0.0.0.0:2379 --advertise-client-urls=http://example-etcd-cluster-0001.example-etcd-cluster.e2e-local.svc.cluster.local:2379 --initial-cluster=example-etcd-cluster-0000=http://example-etcd-cluster-0000.example-etcd-cluster.e2e-local.svc.cluster.local:2380,example-etcd-cluster-0001=http://example-etcd-cluster-0001.example-etcd-cluster.e2e-local.svc.cluster.local:2380 --initial-cluster-state=existing"
],
"ports": [
{
"name": "server",
"containerPort": 2380,
"protocol": "TCP"
},
{
"name": "client",
"containerPort": 2379,
"protocol": "TCP"
}
],
"resources": {},
"volumeMounts": [
{
"name": "etcd-data",
"mountPath": "/var/etcd"
}
],
"livenessProbe": {
"exec": {
"command": [
"/bin/sh",
"-ec",
"ETCDCTL_API=3 etcdctl get foo"
]
},
"initialDelaySeconds": 10,
"timeoutSeconds": 10,
"periodSeconds": 60,
"failureThreshold": 3
}
}
],
"restartPolicy": "Never",
"hostname": "example-etcd-cluster-0001",
"subdomain": "example-etcd-cluster"
}
"
time="2017-06-28T20:20:28Z" level=info msg="created pod (example-etcd-cluster-0002) with spec: {
"volumes": [
{
"name": "etcd-data",
"emptyDir": {}
}
],
"containers": [
{
"name": "etcd",
"image": "quay.io/coreos/etcd:v3.1.8",
"command": [
"/bin/sh",
"-ec",
"sleep 5; /usr/local/bin/etcd --data-dir=/var/etcd/data --name=example-etcd-cluster-0002 --initial-advertise-peer-urls=http://example-etcd-cluster-0002.example-etcd-cluster.e2e-local.svc.cluster.local:2380 --listen-peer-urls=http://0.0.0.0:2380 --listen-client-urls=http://0.0.0.0:2379 --advertise-client-urls=http://example-etcd-cluster-0002.example-etcd-cluster.e2e-local.svc.cluster.local:2379 --initial-cluster=example-etcd-cluster-0000=http://example-etcd-cluster-0000.example-etcd-cluster.e2e-local.svc.cluster.local:2380,example-etcd-cluster-0001=http://example-etcd-cluster-0001.example-etcd-cluster.e2e-local.svc.cluster.local:2380,example-etcd-cluster-0002=http://example-etcd-cluster-0002.example-etcd-cluster.e2e-local.svc.cluster.local:2380 --initial-cluster-state=existing"
],
"ports": [
{
"name": "server",
"containerPort": 2380,
"protocol": "TCP"
},
{
"name": "client",
"containerPort": 2379,
"protocol": "TCP"
}
],
"resources": {},
"volumeMounts": [
{
"name": "etcd-data",
"mountPath": "/var/etcd"
}
],
"livenessProbe": {
"exec": {
"command": [
"/bin/sh",
"-ec",
"ETCDCTL_API=3 etcdctl get foo"
]
},
"initialDelaySeconds": 10,
"timeoutSeconds": 10,
"periodSeconds": 60,
"failureThreshold": 3
}
}
],
"restartPolicy": "Never",
"hostname": "example-etcd-cluster-0002",
"subdomain": "example-etcd-cluster"
}
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment