SpringIO Kubernetes Notes

Utilities

Generates kubernetes deployment yaml. Integrates with skaffold nicely.

<dependency>
    <groupId>io.dekorate</groupId>
    <artifactId>kubernetes-spring-starter</artifactId>
</dependency>
skaffold run

Ingress. Expose services outside cluster.

Install nginx Ingress Controller

@SpringBootApplication
@KubernetesApplication(ingress = @Ingress(expose = true))

TAP Commands

List Packages

tanzu package installed list -n tap-install

List Supply Chains

tanzu apps cluster-supply-chain list

Get App details

ubuntu@master:~$ tanzu apps cluster-supply-chain get basic-image-to-url
---
# basic-image-to-url: Ready
---
Supply Chain Selectors
   TYPE          KEY                                   OPERATOR   VALUE
   fields        spec.image                            Exists
   expressions   apps.tanzu.vmware.com/workload-type   In         web
   expressions   apps.tanzu.vmware.com/workload-type   In         server
   expressions   apps.tanzu.vmware.com/workload-type   In         worker

Update TAP after changing tap-values.yaml

tanzu package installed update tap --values-file $HOME/tap-values.yaml -n tap-install