Skip to content

Instantly share code, notes, and snippets.

View asaphe's full-sized avatar

Asaph asaphe

  • Israel
View GitHub Profile
@asaphe
asaphe / k8s_kubectl.md
Last active June 20, 2023 13:05
Kubernetes Commands - Kubectl

Kubectl

Imperative == refers to cli commands Declarative == using YAML files

--export
--save-config
--record
@asaphe
asaphe / aws_cognito_aes.md
Last active May 2, 2022 18:14
Amazon Elasticsearch - Kibana Access using AWS Cognito and Google Apps

Amazon Cognito for Amazon Elasticsearch Kibana access using SAML

That is a mouthful and the process could be clearer. doesn't help that there's a lot of outdated information and conflicting articles with links upon links pointing you in every which way but the right way.

I'll use Google Apps as a SAML provider for the purpose of this gist.

Overview of the steps

The process is triggered from the AES Console and required multiple steps to configure the IAM Roles and chosen IDP

@asaphe
asaphe / default-user.groovy
Created October 10, 2017 11:02
create a user for Jenkins
import jenkins.model.*
import hudson.security.*
def env = System.getenv()
def jenkins = Jenkins.getInstance()
jenkins.setSecurityRealm(new HudsonPrivateSecurityRealm(false))
jenkins.setAuthorizationStrategy(new GlobalMatrixAuthorizationStrategy())
def user = jenkins.getSecurityRealm().createAccount(env.JENKINS_USER, env.JENKINS_PASS)
@asaphe
asaphe / plugins.txt
Created October 10, 2017 11:00
list of plugins to pass to the Jenkins image
durable-task:1.14
workflow-scm-step:2.6
bitbucket-build-status-notifier:1.3.3
pipeline-build-step:2.5.1
workflow-cps-global-lib:2.8
http_request:1.8.20
antisamy-markup-formatter:1.5
pipeline-maven:3.0.0
ssh-credentials:1.13
kubernetes:0.12