Skip to content

Instantly share code, notes, and snippets.

View viglesiasce's full-sized avatar

Vic Iglesias viglesiasce

View GitHub Profile
@viglesiasce
viglesiasce / skaffold-test.yaml
Last active November 5, 2020 19:20
Use skaffold to run a test command in the cluster
apiVersion: skaffold/v2beta9
kind: Config
build:
artifacts:
- image: skaffold-example
test:
- image: skaffold-example
structureTests:
- ./test/*
# Image is required to know when we need to rebuild these (?)
# Copyright 2019 The Tekton Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
---
# Copyright 2019 The Tekton Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@viglesiasce
viglesiasce / Dockerfile
Created September 5, 2019 18:00
Kaniko Docker Image
FROM gcr.io/kaniko-project/executor:debug
RUN ["/busybox/sh", "-c", "wget https://download.docker.com/linux/static/stable/aarch64/docker-19.03.1.tgz && tar xzvf docker-19.03.1.tgz && cp docker/* /busybox/"]

Packages:

tekton.dev/v1alpha1

Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 API group

@viglesiasce
viglesiasce / bootstrap_template.yaml
Last active July 30, 2019 06:12
Traffic Director Container-Optimized OS
node:
id: "ENVOY_NODE_ID"
cluster: cluster # unused
locality:
zone: "ENVOY_ZONE"
metadata:
TRAFFICDIRECTOR_INTERCEPTION_PORT: "ENVOY_PORT"
TRAFFICDIRECTOR_NETWORK_NAME: "VPC_NETWORK_NAME"
TRAFFICDIRECTOR_GCP_PROJECT_NUMBER: "CONFIG_PROJECT_NUMBER"
TRAFFICDIRECTOR_ENABLE_TRACING: "TRACING_ENABLED"
@viglesiasce
viglesiasce / greeter_server.py
Last active October 6, 2023 08:22
GKE gRPC Ingress
"""The Python implementation of the GRPC helloworld.Greeter server."""
from concurrent import futures
import time
import grpc
import helloworld_pb2
import helloworld_pb2_grpc
{{- define "gitlab.appConfig.extra" -}}
extra:
+ {{ if .extra.googleAnalyticsId }}
google_analytics_id: {{ .extra.googleAnalyticsId | quote }}
+ {{- end }}
+ {{ if .extra.piwik_url }}
piwik_url: {{ .extra.piwikUrl | quote }}
+ {{- end }}
+ {{ if .extra.piwik_site_id }}
piwik_site_id: {{ .extra.piwikSiteId | quote }}
@viglesiasce
viglesiasce / nat-gw-test.yaml
Last active October 24, 2018 23:28
Example of using Taints and Node Selectors to test NAT GW setup
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: admin-pool
name: admin-pool
spec:
selector:
matchLabels:
run: admin-pool
### Keybase proof
I hereby claim:
* I am viglesiasce on github.
* I am vicnastea (https://keybase.io/vicnastea) on keybase.
* I have a public key ASDp2WvWTKxpJHQ4CHaGS7cAauxqGRjxQ9f37QhEtgtrtQo
To claim this, I am signing this object: