This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: kibana-ingress | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" | |
nginx.ingress.kubernetes.io/secure-backends: "true" | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# define our new port number | |
API_PORT=8080 | |
# update kube-apiserver args with the new port | |
# tell other services about the new port | |
sudo find /var/snap/microk8s/current/args -type f -exec sed -i "s/8080/$API_PORT/g" {} ';' | |
# create new, updated copies of our kubeconfig for kubelet and kubectl to use | |
mkdir -p ~/.kube && microk8s.config -l | sed "s/:8080/:$API_PORT/" | sudo tee /var/snap/microk8s/current/kubelet.config > ~/.kube/microk8s.config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local sampleSpringBootAppDeployment = import "samplespringbootapp-deployment.jsonnet.template"; | |
sampleSpringBootAppDeployment.samplespringbootapp() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local serviceDeployment = import "service-deployment-ingress.jsonnet.template"; | |
local samplespringbootapp() = serviceDeployment + { | |
serviceName:: "samplespringbootapp", | |
dockerImage:: "parjanya/samplespringbootapp:1.6-SNAPSHOT", | |
servicePort:: 9999, | |
url:: "/hello", | |
readinessProbe:: | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Template for a basic service, deployment and ingress | |
{ | |
// Required arguments for this template | |
serviceName:: error "serviceName must be specified", | |
dockerImage:: error "dockerImage must be specified", | |
servicePort:: error "servicePort must be specified", | |
servicePortType:: "ClusterIP", | |
namespace:: "default", | |
host:: "mysterious-grass-savages.github", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
jdk: | |
- openjdk8 | |
- openjdk11 | |
- openjdk12 | |
cache: | |
directories: | |
- ".autoconf" | |
- "$HOME/.m2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop on error | |
set -e | |
main() { | |
init | |
setup_git | |
buildArtifact | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop on error | |
set -e | |
main() { | |
decryptAndImportPrivateKeys | |
} | |
# From gist - https://gist.github.com/Bost/54291d824149f0c4157b40329fceb02c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd' | |
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> | |
<servers> | |
<server> | |
<id>ossrh</id> | |
<username>${env.username}</username> | |
<password>${env.OSS_PASSWORD}</password> | |
</server> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
docker: | |
# specify the version you desire here | |
- image: circleci/openjdk:11-jdk | |
# Specify service dependencies here if necessary | |
# CircleCI maintains a library of pre-built images | |
# documented at https://circleci.com/docs/2.0/circleci-images/ | |
# - image: circleci/postgres:9.4 |