Skip to content

Commit

Permalink
Merge pull request #4 from camunda-community-hub/new-k8s
Browse files Browse the repository at this point in the history
k8s: update deployment descriptors
  • Loading branch information
saig0 authored May 5, 2023
2 parents ccd729d + 3c8f50b commit a55dc88
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 40 deletions.
39 changes: 4 additions & 35 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: feel-tutorial
name: feel-scala-playground
spec:
selector:
matchLabels:
app: feel-tutorial
app: feel-scala-playground
replicas: 1
template:
metadata:
labels:
app: feel-tutorial
app: feel-scala-playground
spec:
containers:
- name: feel-container
image: docker.io/upgradingdave/feel-tutorial@sha256:927af94867a93ca0ed56dcf7f359078eeb2355c91693c3554a46662f239833d0
image: ghcr.io/camunda-community-hub/feel-scala-playground:latest
readinessProbe:
httpGet:
path: "/actuator/health"
port: 8080
initialDelaySeconds: 10
timeoutSeconds: 5
env:
- name: ZEEBE_BASE_URL
valueFrom:
secretKeyRef:
name: feel-tutorial
key: zeebe.client.cloud.base-url
- name: ZEEBE_AUTH_URL
valueFrom:
secretKeyRef:
name: feel-tutorial
key: zeebe.client.cloud.auth-url
- name: ZEEBE_REGION
valueFrom:
secretKeyRef:
name: feel-tutorial
key: zeebe.client.cloud.region
- name: ZEEBE_CLUSTER_ID
valueFrom:
secretKeyRef:
name: feel-tutorial
key: zeebe.client.cloud.clusterId
- name: ZEEBE_CLIENT_ID
valueFrom:
secretKeyRef:
name: feel-tutorial
key: zeebe.client.cloud.clientId
- name: ZEEBE_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: feel-tutorial
key: zeebe.client.cloud.clientSecret
6 changes: 3 additions & 3 deletions k8s/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: feel-tutorial-ingress
name: feel-scala-playground-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: feel-tutorial-ip
kubernetes.io/ingress.global-static-ip-name: feel-scala-playground-ip
networking.gke.io/managed-certificates: feel-service-managed-cert
kubernetes.io/ingress.class: "gce"
spec:
defaultBackend:
service:
name: feel-tutorial-service
name: feel-scala-playground-service
port:
number: 8080
4 changes: 2 additions & 2 deletions k8s/service.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: feel-tutorial-service
name: feel-scala-playground-service
spec:
type: NodePort
ports:
- targetPort: 8080
port: 8080
nodePort: 30008
selector:
app: feel-tutorial
app: feel-scala-playground

0 comments on commit a55dc88

Please sign in to comment.