Skip to content

Latest commit

 

History

History

advanced_example

Simple Example

This is an advanced example showing a configuration of k8sTicket with two different applications. The deployed example applications are GoldenMutagenesisWeb and MetFamily in the namespace "example".

Files

1_rbac.yaml

This yaml sets up the RBAC for k8sTicket's Kubernetes component. As you can see k8sTicket has all privileges on Pods, it is allowed to get, watch and list Deployments and also to get ObjectMetaData.

2_k8sTicket.yaml

This will deploy k8sTicket in the example namespace, waiting for other Deployments.

3_k8sTicket_service.yaml

Creates the service definition for k8sTicket, including the port 9001 for the GoldenMutagenesisWeb application and port 9002 for MetFamily.

4_gmweb.yaml

This will deploy GoldenMutagenesisWeb and configure it for the use with k8sTicket.

5_metfam.yaml

This will deploy MetFamily and configure it for the use with k8sTicket.

Note: We used the Label ipb-halle.de/k8sticket.deployment.app.name: gmweb/metfam as selector definition for k8s. You can also use your own selector, for example when you want to change the application name afterwards (The selector field is immutable in API version apps/v1).

6_k8sTicket_ingress.yaml

This defines the ingress specification for GoldenMutagenesisWeb and MetFamily delivered by k8sTicket. Please adjust the host setting according to your DNS. Finally MetFamily will be available at /metfam and GoldenMutagenesis at /gmweb behind your k8s ingress reverse proxy.