Skip to content

Instantly share code, notes, and snippets.

View TsuyoshiUshio's full-sized avatar
:octocat:
Enjoy coding

Tsuyoshi Ushio TsuyoshiUshio

:octocat:
Enjoy coding
  • Microsoft
  • Kirkland
View GitHub Profile
@TsuyoshiUshio
TsuyoshiUshio / azure-pipelines.yml
Created July 29, 2019 17:28
Build Pipeline example for Azure DevOps Custom Task project
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pr:
- master
@TsuyoshiUshio
TsuyoshiUshio / agent.log
Created June 26, 2019 05:04
Azure DevOps Predefined Variables (GitHub) Pull Request Trigger
2019-06-26T04:09:37.2986960Z Name Value
2019-06-26T04:09:37.2988323Z ---- -----
2019-06-26T04:09:37.2988793Z agent.jobstatus Succeeded
2019-06-26T04:09:37.2989350Z AGENT_BUILDDIRECTORY d:\a\1
2019-06-26T04:09:37.2989660Z AGENT_DISABLELOGPLUGIN_TESTFILEPUBLISHERPLUGIN true
2019-06-26T04:09:37.2989958Z AGENT_DISABLELOGPLUGIN_TESTRESULTLOGPLUGIN false
2019-06-26T04:09:37.2990240Z AGENT_HOMEDIRECTORY C:\agents\2.153.2
@TsuyoshiUshio
TsuyoshiUshio / values.yaml
Created April 26, 2019 00:45
full version (Setup for local kubernetes cluster on my mac) cp-kafka helm chart
## ------------------------------------------------------
## Zookeeper
## ------------------------------------------------------
cp-zookeeper:
enabled: true
servers: 3
image: confluentinc/cp-zookeeper
imageTag: 5.2.1
## Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace.
## https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
@TsuyoshiUshio
TsuyoshiUshio / values.yaml
Created April 26, 2019 00:26
value.yaml for local kubernetes cluter for cp-kafka chart. (just a part. under the cp-kafka)
nodeport:
enabled: true
servicePort: 19092
firstListenerPort: 31090
configurationOverrides:
"offsets.topic.replication.factor": "3"
"advertised.listeners": |-
EXTERNAL://localhost:$((31090 + ${KAFKA_BROKER_ID}))
"listener.security.protocol.map": |-
PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
@TsuyoshiUshio
TsuyoshiUshio / pipeline.yaml
Created April 20, 2019 07:32
All task configurations of NuGet publishing to the Azure Artifacts
steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: '$(Parameters.RestoreBuildProjects)'
steps:
- task: DotNetCoreCLI@2
displayName: Build
@TsuyoshiUshio
TsuyoshiUshio / DotNetPack.yaml
Last active April 20, 2019 07:33
dotnet pack for the Nuget Package publish to the private.
steps:
- task: DotNetCoreCLI@2
displayName: 'dotnet pack'
inputs:
command: pack
packagesToPack: src/Microsoft.Azure.WebJobs.Extensions.Some/Microsoft.Azure.WebJobs.Extensions.Some.csproj
buildProperties: 'VersionSuffix=-$(Build.BuildId)'
@TsuyoshiUshio
TsuyoshiUshio / Build.yaml
Last active April 20, 2019 06:41
Build Task yaml file for NuGet private repo push.
steps:
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: '$(Parameters.RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration) --version-suffix "-$(Build.BuildId)"'
@TsuyoshiUshio
TsuyoshiUshio / create_ipaddress.sh
Created April 19, 2019 02:09
Kafka cluster deployment snippets
#!/bin/bash
# create three ipaddresses on AKS cluster.
usage() { echo "Usage: create_ipaddress.sh -n <clusterName> -r <resourceGroupName> "; exit 1; }
declare clusterName=""
declare resourceGroupName=""
while getopts ":n:r:" arg; do
@TsuyoshiUshio
TsuyoshiUshio / values.yaml
Created April 9, 2019 02:37
important part of the values.yaml configuration for enabling external access with kafka on Kubernetes with helm.
## External access.
##
external:
type: LoadBalancer
# annotations:
# service.beta.kubernetes.io/openstack-internal-load-balancer: "true"
dns:
useInternal: false
useExternal: false
# create an A record for each statefulset pod
@TsuyoshiUshio
TsuyoshiUshio / values.yaml
Created April 9, 2019 02:35
Kafka helm configuration for external client access
# ------------------------------------------------------------------------------
# Kafka:
# ------------------------------------------------------------------------------
## The StatefulSet installs 3 pods by default
replicas: 3
## The kafka image repository
image: "confluentinc/cp-kafka"