Is there any template for kubernetes cluster using...
# general
b
Is there any template for kubernetes cluster using java similar to this - https://www.pulumi.com/templates/kubernetes/gcp/
s
We haven’t gotten around to creating the Java version of that---but you can also do that on your own with the power of
pulumi convert
! Here’s how: 1. Use the Kubernetes GCP YAML template:
pulumi new kubernetes-gcp-yaml
2. Run
pulumi convert --language java --out <directory>
3. Fine-tune the resulting Java program as needed
b
@salmon-account-74572
got an exception as [ERROR] COMPILATION ERROR :
[ERROR] /Users/san/project/Fetebird-deployment/template/java-project/src/main/java/generated_program/App.java:[100,20] text blocks are not supported in -source 11
(use -source 15 or higher to enable text blocks)
I have the below java version
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06)
OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing)
s
I am not a Java expert, but I’ve asked for some assistance internally from folks who are.