Skip to content

Commit 5df5077

Browse files
committed
K8S-402 open-liberty helloworld operator
1 parent 61cf6c0 commit 5df5077

File tree

4 files changed

+22
-72
lines changed

4 files changed

+22
-72
lines changed

addons/ingress/openliberty.yaml

Lines changed: 0 additions & 66 deletions
This file was deleted.

addons/open-liberty.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: openliberty.io/v1beta1
2+
kind: OpenLibertyApplication
3+
metadata:
4+
name: hello-open-liberty
5+
namespace: open-liberty
6+
spec:
7+
applicationImage: openliberty/open-liberty:kernel-java14-openj9-ubi
8+
service:
9+
type: ClusterIP
10+
port: 9080
11+
expose: true
12+
route:
13+
path: /
14+
storage:
15+
size: 2Gi
16+
mountPath: "/logs"

configs/settings.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ fields:
1515
required: true
1616
hideLabel: true
1717
default: |-
18-
helm repo add ibm-charts https://raw.githubusercontent.com/IBM/charts/master/repo/stable/
19-
helm install --name open-liberty --set autoscaling.enabled=true --set autoscaling.minReplicas=2 --set resources.constraints.enabled=true --set resources.requests.cpu=1000m --set resources.limits.cpu=1000m --set resources.requests.memory=512Mi --set resources.limits.memory=1Gi ibm-charts/ibm-open-liberty --debug
20-
kubectl apply -f https://raw.githubusercontent.com/jelastic-jps/kubernetes/v1.17.12/addons/ingress/openliberty.yaml
18+
OPERATOR_NAMESPACE=open-liberty
19+
kubectl create namespace ${OPERATOR_NAMESPACE}
20+
kubectl apply -f https://raw.githubusercontent.com/OpenLiberty/open-liberty-operator/master/deploy/releases/0.7.0/openliberty-app-crd.yaml
21+
curl -L https://raw.githubusercontent.com/OpenLiberty/open-liberty-operator/master/deploy/releases/0.7.0/openliberty-app-cluster-rbac.yaml | sed -e "s/OPEN_LIBERTY_OPERATOR_NAMESPACE/${OPERATOR_NAMESPACE}/" | kubectl apply -f -
22+
curl -L https://raw.githubusercontent.com/OpenLiberty/open-liberty-operator/master/deploy/releases/0.7.0/openliberty-app-operator.yaml | sed -e "s/OPEN_LIBERTY_WATCH_NAMESPACE/${OPERATOR_NAMESPACE}/" | kubectl apply -n ${OPERATOR_NAMESPACE} -f -
23+
kubectl apply -f https://raw.githubusercontent.com/jelastic-jps/kubernetes/v1.17.12/addons/open-liberty.yaml
2124
2225
- name: label
2326
caption: Topology

manifest.jps

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,6 @@ actions:
277277
- if ('${settings.deploy}' == 'cmd'):
278278
cmd[${nodes.k8sm.master.id}]: |-
279279
${settings.cmd}
280-
if [ '${settings.ingress-controller}' == "Nginx" ]; then kubectl delete ingress/open-liberty-traefik ingress/open-liberty-haproxy || true; fi
281-
if [ '${settings.ingress-controller}' == "HAProxy" ]; then kubectl delete ingress/open-liberty-traefik ingress/open-liberty-nginx || true; fi
282-
if [ '${settings.ingress-controller}' == "Traefik" ]; then kubectl delete ingress/open-liberty-haproxy ingress/open-liberty-nginx || true; fi
283280
- if ('${settings.deploy}' == 'yml'):
284281
cmd[${nodes.k8sm.master.id}]: kubectl apply -f ${settings.yml}
285282

0 commit comments

Comments
 (0)