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.1' encoding='UTF-8'?> | |
<hudson> | |
<disabledAdministrativeMonitors/> | |
<version>2.217</version> | |
<installStateName>RUNNING</installStateName> | |
<numExecutors>0</numExecutors> | |
<mode>NORMAL</mode> | |
<useSecurity>true</useSecurity> | |
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"> | |
<denyAnonymousReadAccess>true</denyAnonymousReadAccess> |
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
Description | Source | Target | Ports | Direction | |
---|---|---|---|---|---|
Trusted Clients to Bastion Host | Trusted Internet IP Range | Bastion Host | tcp:22 | Ingress | |
Bastion Host to all nodes | Bastion Host | All Nodes | tcp:22 | Ingress | |
Trusted Clients, Master and Worker Nodes to API Server Load Balancer | Trusted Internet IP Range, Master and Worker Nodes | Load Balancer | tcp:6443 | Ingress | |
API Server Load Balancer to Master Nodes | Load Balancer | Master Nodes | tcp:6443 | Ingress | |
Master Nodes to ETCD Load Balancer | Master Nodes | ETCD Load Balancer | tcp:2379 | Ingress | |
ETCD Load Balancer to ETCD Nodes | ETCD Load Balancer | ETCD Nodes | tcp:2379 | Ingress | |
ETCD Nodes to ETCD Nodes | ETCD Nodes | ETCD Nodes | tcp:2379-2380 | Ingress | |
API Servers to Kubelet on Worker Nodes | Master Nodes | Worker Nodes | tcp:10250 | Ingress | |
Load Balancer and Master Nodes to Worker NodePorts | Load Balancer and Master Nodes | Worker Nodes | tcp:30000-32767 | Ingress |
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 | |
param=$1 | |
internal_vip=$OCF_RESKEY_internal_vip | |
external_vip=$OCF_RESKEY_external_vip | |
healthz=$OCF_RESKEY_healthz | |
meta_data() { | |
cat <<END | |
<?xml version="1.0"?> | |
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd"> | |
<resource-agent name="gcp-failoverd" version="0.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 | |
internal=false | |
external=false | |
while getopts ":i:e:" opt; do | |
case "$opt" in | |
i) internal_vip=$OPTARG | |
internal=true | |
;; | |
e) external_vip=$OPTARG | |
external=true |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
run: custom-metric-sd | |
name: custom-metric-sd | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: |
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: autoscaling/v2beta1 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: custom-metric-sd | |
namespace: default | |
spec: | |
scaleTargetRef: | |
apiVersion: apps/v1beta1 | |
kind: Deployment | |
name: custom-metric-sd |
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.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: bookinfo-gateway | |
spec: | |
selector: | |
istio: ingressgateway # use istio default controller | |
servers: | |
- port: | |
number: 80 |
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.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: bookinfo-gateway | |
spec: | |
selector: | |
istio: ingressgateway # use istio default controller | |
servers: | |
- port: | |
number: 80 |
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
# Version JDK8 | |
FROM centos:7 | |
MAINTAINER Gaurav Agarwal, [email protected] | |
RUN yum install -y java-1.8.0-openjdk-devel wget git maven | |
# Create users and groups | |
RUN groupadd tomcat | |
RUN mkdir /opt/tomcat |
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
steps: | |
# Pull the existing image | |
- name: 'gcr.io/cloud-builders/docker' | |
entrypoint: 'bash' | |
args: | |
- '-c' | |
- | | |
docker pull gcr.io/$PROJECT_ID/tomcat:latest || exit 0 | |
# Build a docker image | |
- name: 'gcr.io/cloud-builders/docker' |