Skip to content

Instantly share code, notes, and snippets.

View dgozalo's full-sized avatar

Daniel Gozalo dgozalo

View GitHub Profile
{
"id": "e8e48096-d248-11ea-9a26-42010a83ae1c",
"firstName": "Daniel",
"lastName": "Gozalo",
"metadata": {
"gc_token": "1f3bf70446672a53c4aa82c068e725f88d9587c0",
"gc_user_id": 1019,
"gc_authentication_provider_id": 1
},
"isVerified": false,
[server:uds] -------- CALLING GET --------
[server:uds] PATH: organizations
[server:uds] -----------------
[server:uds] PARAMS: [object Object]
[server:uds] -------- CALLING GET --------
[server:uds] PATH: teams/10db1b20-cb80-11ea-bf43-42010a83ae1c
[server:uds] -----------------
[server:uds] PARAMS: [object Object]
[server:uds] -------- CALLING GET --------
[server:uds] PATH: users/1d0173a8-bc63-11ea-aad8-42010a0e0003
panic: runtime error: invalid memory address or nil pointer dereference │
│ [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x576112] │
│ │
│ goroutine 814 [running]:
@dgozalo
dgozalo / eksctl-policy.json
Created January 22, 2020 11:07
This is an AWS IAM Policy needed by eksctl to create and operate an EKS cluster.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iam:CreateInstanceProfile",
"iam:DeleteInstanceProfile",
"iam:GetRole",
"iam:GetInstanceProfile",
@dgozalo
dgozalo / jxboot-policies.json
Created January 22, 2020 11:05
This is an AWS IAM Policy with all the minimum permissions to let Jenkins X Boot work on EKS
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"dynamodb:CreateTable",
"s3:GetObject",
@dgozalo
dgozalo / pa
Created November 13, 2019 15:44
apiVersion: jenkins.io/v1
kind: PipelineActivity
metadata:
creationTimestamp: "2019-11-12T18:47:22Z"
generation: 1
labels:
branch: master
build: "1"
owner: dgozalo
provider: github
On AWS we recommend using a custom DNS name to access services in your Kubernetes cluster to ensure you can use all of your Availability Zones
If you do not have a custom DNS name you can use yet, then you can register a new one here: https://console.aws.amazon.com/route53/home?#DomainRegistration:
? Would you like to register a wildcard DNS ALIAS to point at this ELB address? No
The Ingress address <snip>-dd0217b352d06378.elb.us-east-1.amazonaws.com is not an IP address. We recommend we try resolve it to a public IP address and use that for the domain to access services externally.
? Would you like wait and resolve this address to an IP address and use it for the domain? Yes
Waiting for <snip>-dd0217b352d06378.elb.us-east-1.amazonaws.com to be resolvable to an IP address...
WARNING: retrying after error: Address cannot be resolved yet <snip>-dd0217b352d06378.elb.us-east-1.amazonaws.com
.
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{\"jenkins.io/chart\":\"cm\"},\"labels\":{\"app\":\"cainjector\",\"app.kubernetes.io/instance\":\"jx\",\"app.kubernetes.io/managed-by\":\"Tiller\",\"app.kubernetes.io/name\":\"cainjector\",\"helm.sh/chart\":\"cainjector-v0.9.1\",\"jenkins.io/chart-release\":\"jx\",\"jenkins.io/namespace\":\"cert-manager\",\"jenkins.io/version\":\"1\"},\"name\":\"jx-cainjector\",\"namespace\":\"cert-manager\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app\":\"cainjector\",\"app.kubernetes.io/instance\":\"jx\",\"app.kubernetes.io/managed-by\":\"Tiller\",\"app.kubernetes.io/name\":\"cainjector\"}},\"template\":{\"metadata\":{\"annotations\":null,\"labels\":{\"app\":\"cainjector\",\"app.kubernetes.io/instance\":\"jx\",\"app.kubernetes.io/managed-by\":\"Tiller\",\"app.kubernetes.io/name\":\"cainjector
• Failure [885.385 seconds]
Creating application spring-boot-http-gradle
/tmp/jenkins-x/bdd-jx/test/_import/jx_import.go:38
by running jx import
/tmp/jenkins-x/bdd-jx/test/_import/jx_import.go:56
creates an application from the specified folder and promotes it to staging [It]
/tmp/jenkins-x/bdd-jx/test/_import/jx_import.go:57
get applications with a URL
Unexpected error:
Saving the Git authentication configuration
ERROR: error creating cluster configuring the git auth: saving the Git authentication configuration: saving auth config "gitAuth.yaml" in vault: Error making API request.
URL: PUT http://jx-vault-samuraigravel.jx.35.205.217.159.nip.io/v1/secret/data/auth/gitAuth.yaml
Code: 404. Errors:
* no handler for route 'secret/data/auth/gitAuth.yaml'
error: configuring the git auth: saving the Git authentication configuration: saving auth config "gitAuth.yaml" in vault: Error making API request.
URL: PUT http://jx-vault-samuraigravel.jx.35.205.217.159.nip.io/v1/secret/data/auth/gitAuth.yaml