Skip to content

Instantly share code, notes, and snippets.

lupupaulsv

Block or report user

Report or block lupupaulsv

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:66000e9d919d2de8d1ae6be379302d02
root@jenkins01:~/ansible_ami_builder# cat playbook.yaml
# AWS Playbook
---
- hosts: localhost
connection: local
gather_facts: False
vars:
key_name: troc-ec2-key
View gist:b4bff0fac7aa8cebfc37c27abf4dc358
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/subnets: subnet-767bb43d,subnet-eecaf7b5
alb.ingress.kubernetes.io/scheme: internet-facing
kubernetes.io/ingress.class: alb
name: echoserver
spec:
rules:
View new vpn routes
default via 172.31.0.1 dev eth0 proto dhcp src 172.31.9.74 metric 100
10.34.0.0/24 via 10.34.0.2 dev tun0
10.34.0.2 dev tun0 proto kernel scope link src 10.34.0.1
172.31.0.0/20 dev eth0 proto kernel scope link src 172.31.9.74
172.31.0.1 dev eth0 proto dhcp scope link src 172.31.9.74 metric 100
View gist:0bae99dc4526faaff2f4f46b79e78466
2019-10-04 08:55:42.577+0000 [id=30] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Initializing plugin selenium
java.net.SocketTimeoutException: Accept timed out
at java.base/java.net.PlainSocketImpl.socketAccept(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:458)
at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:551)
at java.base/java.net.ServerSocket.accept(ServerSocket.java:519)
at hudson.slaves.Channels.newJVM(Channels.java:227)
at hudson.plugins.selenium.process.SeleniumProcessUtils.createSeleniumGridVM(SeleniumProcessUtils.java:59)
at hudson.plugins.selenium.PluginImpl.startHub(PluginImpl.java:176)
at hudson.plugins.selenium.PluginImpl.postInitialize(PluginImpl.java:136)
View gist:57e07c15a63b6b422c6d6b59b6240544
paul.lupu@SVROLP00209:~/work/kubernetes/metrics-server:(master)\
_$ kk apply -f deploy/1.8+/
clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader unchanged
clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator unchanged
rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader unchanged
apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io unchanged
serviceaccount/metrics-server unchanged
deployment.apps/metrics-server unchanged
service/metrics-server unchanged
clusterrole.rbac.authorization.k8s.io/system:metrics-server unchanged
View gist:51f0348cf6007de91a6de545f437ea29
root@ce0d825c1557:/# apt install postgresql-10
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
View gist:21963cc6a4e5c16cc34a23e1070ed67f
[root@ip-172-31-40-87 current]# cat worker_sample.rb
require 'sinatra/base'
require 'logger'
require 'ddtrace'
require 'ddtrace/contrib/sinatra/tracer'
class WorkerSample < Sinatra::Base
configure do
Datadog.configure do |c|
c.tracer hostname: 'test'
View gist:db7af7bcc3346bcacf86bd32d2863ab8
pipeline {
environment {
LANG = "C.UTF-8"
}
agent {
docker {
image 'centos:7'
args '-p 2222:22 -v --privileged '
}
}
View gist:a457ba2f1d4a9aad49844db16cf71d85
stage("PushToGitHub") {
steps {
sh """
git add --all .
git commit -m 'PIPELINE: update to AMIs to newest version'
git checkout -b automation
git checkout $GIT_BRANCH
git pull --rebase
git merge automation -m 'Merged from automation branch'
git push
View gist:f8ef077dfb24ad1103704b3ff089d777
for i in ${ids[@]}
do
echo "Waiting for build ID $i running on account: $ACCOUNT_ID"
echo "Debug information at https://us-west-2.console.aws.amazon.com/systems-manager/automation/execution/$i?region=$AWS_DEFAULT_REGION"
while true;
do
status=$(aws ssm get-automation-execution --output text --automation-execution-id "$i" )
if [[ $(echo "$status" | grep -i "status" | grep -i "failed") ]]; then
### something has gone wrong, stop the execution
echo "Build failed!"
You can’t perform that action at this time.