Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
kuberneting

Hector Fernandez hectorj2f

💭
kuberneting
View GitHub Profile
@hectorj2f
hectorj2f / cleanup_etcd_fleet_hashes.sh
Created Oct 29, 2015
Script to cleanup etcd fleet hashes
View cleanup_etcd_fleet_hashes.sh
#!/bin/bash
DIR="/tmp/cleanup_fleet_keys"
mkdir -p ${DIR}
echo "Fetching etcd keys from fleet /_coreos.com/fleet/unit "
cat <(etcdctl ls --recursive /_coreos.com/fleet/unit| awk -F\/ '{print $NF}') <(fleetctl list-unit-files -full -fields=hash -no-legend) | sort | uniq -u > ${DIR}/etcd_fleet_keys_one
echo "Waiting 10 seconds to collect the keys one more time..."
View keybase.md

Keybase proof

I hereby claim:

  • I am hectorj2f on github.
  • I am hectorj2f (https://keybase.io/hectorj2f) on keybase.
  • I have a public key whose fingerprint is 3FC3 06B8 BA33 B816 9332 0035 B82E 9A77 CF70 BF80

To claim this, I am signing this object:

View gist:177a2d48cc0fc172cc5cd420d3b138b7
```
$ sudo iptables -L -v -n
Chain INPUT (policy ACCEPT 26 packets, 1801 bytes)
pkts bytes target prot opt in out source destination
588 98723 felix-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 6 packets, 400 bytes)
pkts bytes target prot opt in out source destination
218 37080 felix-FORWARD all -- * * 0.0.0.0/0 0.0.0.0/0
View vagrant_up_logs
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_XPC_FLAGS="0x0"
INFO global: VAGRANT_OLD_ENV_SECURITYSESSIONID="186a5"
INFO global: VAGRANT_OLD_ENV_COMMAND_MODE="unix2003"
INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8"
INFO global: VAGRANT_OLD_ENV_HOME="/Users/hector"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant"
View fleet test failure
ok github.com/coreos/fleet/engine 0.045s coverage: 39.2% of statements
Destroyed j1.service
Destroyed j2.service
Destroyed j3.service
Destroyed j4.service
Destroyed j5.service
Units not found in registry
Units not found in registry
Units not found in registry
Destroyed j1.service
View output cmd
$ ./bin/alm-cli list work-item-link-type -H localhost:8080 --pp
2017/02/24 13:02:53 [INFO] started id=AGzGsdJ+ GET=http://localhost:8080/api/workitemlinktypes
2017/02/24 13:02:53 [INFO] completed id=AGzGsdJ+ status=200 time=21.729558ms
{
"data": [
{
"attributes": {
"description": "One bug blocks a planner item.",
"forward_name": "blocks",
"name": "Bug blocker",
View gist:0e2e163b941bcebda6ee9564149d0c58
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Secret
metadata:
annotations:
maven.fabric8.io/source-url: jar:file:/home/hector/rh_repo/gopath/src/github.com/fabric8io/fabric8-platform/apps/keycloak/target/keycloak-3.0-SNAPSHOT.jar!/META-INF/fabric8/openshift.yml
labels:
View fabric9.json
[ {
"id" : "master",
"realm" : "master",
"displayName" : "Keycloak",
"displayNameHtml" : "<div class=\"kc-logo-text\"><span>Keycloak</span></div>",
"notBefore" : 0,
"revokeRefreshToken" : false,
"accessTokenLifespan" : 60,
"accessTokenLifespanForImplicitFlow" : 900,
"ssoSessionIdleTimeout" : 1800,
View kubernetes service logs
Archive: /var/lib/mesos/slave/slaves/66df60ae-ce98-4ce6-968a-f99922382ef3-S0/frameworks/66df60ae-ce98-4ce6-968a-f99922382ef3-0001/executors/kubernetes.eb803f00-daac-11e7-af0a-f66634909198/runs/6f3605e0-9e27-4133-a2af-bbbe3706877b/kubernetes-scheduler.zip
creating: /var/lib/mesos/slave/slaves/66df60ae-ce98-4ce6-968a-f99922382ef3-S0/frameworks/66df60ae-ce98-4ce6-968a-f99922382ef3-0001/executors/kubernetes.eb803f00-daac-11e7-af0a-f66634909198/runs/6f3605e0-9e27-4133-a2af-bbbe3706877b/kubernetes-scheduler/
inflating: /var/lib/mesos/slave/slaves/66df60ae-ce98-4ce6-968a-f99922382ef3-S0/frameworks/66df60ae-ce98-4ce6-968a-f99922382ef3-0001/executors/kubernetes.eb803f00-daac-11e7-af0a-f66634909198/runs/6f3605e0-9e27-4133-a2af-bbbe3706877b/kubernetes-scheduler/dashboard.template.yaml
inflating: /var/lib/mesos/slave/slaves/66df60ae-ce98-4ce6-968a-f99922382ef3-S0/frameworks/66df60ae-ce98-4ce6-968a-f99922382ef3-0001/executors/kubernetes.eb803f00-daac-11e7-af0a-f66634909198/runs/6f3605e0-9e27-4133-a2af-bbbe370687
View hdfs-site.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>hadoop.hdfs.configuration.version</name>
<value>1</value>
</property>
<property>
<name>dfs.nameservice.id</name>
<value>hdfs</value>