Updated the tekton installation
This commit is contained in:
@ -1,17 +0,0 @@
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: EnvoyFilter
|
||||
metadata:
|
||||
name: proxy-protocol
|
||||
namespace: istio-system
|
||||
spec:
|
||||
workloadSelector:
|
||||
labels:
|
||||
istio: ingressgateway
|
||||
configPatches:
|
||||
- applyTo: LISTENER
|
||||
patch:
|
||||
operation: MERGE
|
||||
value:
|
||||
listener_filters:
|
||||
- name: envoy.listener.proxy_protocol
|
||||
|
@ -1,17 +0,0 @@
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: EnvoyFilter
|
||||
metadata:
|
||||
name: proxy-protocol
|
||||
namespace: istio-system
|
||||
spec:
|
||||
configPatches:
|
||||
- applyTo: LISTENER
|
||||
patch:
|
||||
operation: MERGE
|
||||
value:
|
||||
listener_filters:
|
||||
- name: envoy.listener.proxy_protocol
|
||||
- name: envoy.listener.tls_inspector
|
||||
workloadSelector:
|
||||
labels:
|
||||
istio: ingressgateway
|
@ -1,83 +0,0 @@
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: httpbin-gateway
|
||||
spec:
|
||||
selector:
|
||||
istio: ingressgateway
|
||||
servers:
|
||||
- port:
|
||||
number: 80
|
||||
name: http
|
||||
protocol: HTTP2
|
||||
hosts:
|
||||
- "test.badhouseplants.net"
|
||||
- hosts:
|
||||
- "test.badhouseplants.net"
|
||||
port:
|
||||
name: https
|
||||
number: 443
|
||||
protocol: HTTPS
|
||||
tls:
|
||||
credentialName: badhouseplants-wildcard-tls
|
||||
mode: SIMPLE
|
||||
---
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: httpbin
|
||||
spec:
|
||||
hosts:
|
||||
- "test.badhouseplants.net"
|
||||
gateways:
|
||||
- httpbin-gateway
|
||||
http:
|
||||
- route:
|
||||
- destination:
|
||||
host: httpbin
|
||||
port:
|
||||
number: 8000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: httpbin
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: httpbin
|
||||
labels:
|
||||
app: httpbin
|
||||
service: httpbin
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 8000
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: httpbin
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: httpbin
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: httpbin
|
||||
version: v1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: httpbin
|
||||
version: v1
|
||||
spec:
|
||||
serviceAccountName: httpbin
|
||||
containers:
|
||||
- image: docker.io/kong/httpbin
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: httpbin
|
||||
ports:
|
||||
- containerPort: 80
|
80
manifests/git_clone.yaml
Normal file
80
manifests/git_clone.yaml
Normal file
@ -0,0 +1,80 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: git-clone-repo
|
||||
namespace: tekton-jobs
|
||||
spec:
|
||||
workspaces:
|
||||
- name: src
|
||||
mountPath: /src
|
||||
params:
|
||||
- name: url
|
||||
|
||||
steps:
|
||||
- name: Git Clone
|
||||
image: alpine/git
|
||||
script: |
|
||||
#!/bin/bash
|
||||
|
||||
---
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: write
|
||||
namespace: tekton-jobs
|
||||
spec:
|
||||
workspaces:
|
||||
- name: src
|
||||
mountPath: /custom/path/relative/to/root
|
||||
steps:
|
||||
- name: goodbye
|
||||
image: ubuntu
|
||||
script: |
|
||||
#!/bin/bash
|
||||
cat $(workspaces.src.path)/check
|
||||
---
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Pipeline
|
||||
metadata:
|
||||
name: hello-goodbye
|
||||
namespace: tekton-jobs
|
||||
spec:
|
||||
tasks:
|
||||
- name: read
|
||||
taskRef:
|
||||
name: read
|
||||
workspaces:
|
||||
- name: src
|
||||
workspace: src
|
||||
- name: write
|
||||
runAfter:
|
||||
- read
|
||||
taskRef:
|
||||
name: read
|
||||
workspaces:
|
||||
- name: src
|
||||
workspace: src
|
||||
workspaces:
|
||||
- name: src
|
||||
---
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: hello-goodbye-run
|
||||
namespace: tekton-jobs
|
||||
spec:
|
||||
pipelineRef:
|
||||
name: hello-goodbye
|
||||
namespace: tekton-jobs
|
||||
params:
|
||||
- name: username
|
||||
value: "Tekton"
|
||||
workspaces:
|
||||
- name: src
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce # access mode may affect how you can use this volume in parallel tasks
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
@ -1,10 +1,9 @@
|
||||
# addresspool.yaml
|
||||
---
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
name: custom-addresspool
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
spec:
|
||||
addresses:
|
||||
- 195.201.250.50-195.201.250.50
|
||||
- 195.201.250.50-195.201.250.50
|
@ -1,10 +1,9 @@
|
||||
# addresspool.yaml
|
||||
---
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
name: custom-addresspool
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
spec:
|
||||
addresses:
|
||||
- 91.232.225.63-91.232.225.63
|
||||
- 91.232.225.63-91.232.225.63
|
13
manifests/tekton/cdh.yaml
Normal file
13
manifests/tekton/cdh.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: check-da-helm
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
params:
|
||||
- name: environment
|
||||
type: string
|
||||
steps:
|
||||
- name: check-da-helm
|
||||
image: ghcr.io/allanger/check-da-helm-helmfile-secrets:stable
|
||||
script: "cdh --kind helmfile -p helmfile.yaml --helmfile-environment \n"
|
Reference in New Issue
Block a user