tekon-pipeline-with-golang-https-server

command module
v0.0.0-...-1353f8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2020 License: CC0-1.0 Imports: 4 Imported by: 0

README

Create Tekon pipeline with a simple goland https server in Openshift 4.x


prerequirements — tekton operater and command line

 see ref:  https://openshift.github.io/pipelines-docs/docs/0.10.5/assembly_installing-pipelines.html 

Create project in ocp4 - go-https-pipeline

#New project:
oc new-project go-https-pipeline

#Check tekon Service account:

oc get sa pipeline

Tekton resources — image and git

oc create -f https://raw.githubusercontent.com/binliuk/tekton-pipeline-with-golang-https-server/master/pipeline/resource.yaml
tkn resource ls

Tekton tasks — deploy and customization

oc create -f https://raw.githubusercontent.com/binliuk/tekton-pipeline-with-golang-https-server/master/pipeline/apply_manifest_task.yaml
oc create -f https://raw.githubusercontent.com/binliuk/tekton-pipeline-with-golang-https-server/master/pipeline/update_deployment_task.yaml

tkn task ls

Tekton pipeline — build and deploy

oc create -f https://raw.githubusercontent.com/binliuk/tekton-pipeline-with-golang-https-server/master/pipeline/pipeline.yaml
tkn pipeline ls 

Trigger pipeline from cli

#trigger
tkn pipeline start build-and-deploy
#track logs
tkn pipelinerun logs <pipelinerun ID> -f -n pipelines-tutorial
#retrigger pipeline
tkn pipeline start build-and-deploy --last

Generate private key (.key)

# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" (X25519 || ≥ secp384r1)
# https://safecurves.cr.yp.to/
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key

Generation of self-signed(x509) public key (PEM-encodings .pem|.crt) based on the private (.key)

openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650

Reference Link

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL