Skip to content

Commit

Permalink
knative
Browse files Browse the repository at this point in the history
Signed-off-by: Raffaele Spazzoli <[email protected]>
  • Loading branch information
raffaelespazzoli committed Sep 2, 2020
1 parent 4a307da commit e89cda4
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 222 deletions.
212 changes: 0 additions & 212 deletions 4.0/cluster2-acm/.openshift_install.log

This file was deleted.

2 changes: 1 addition & 1 deletion misc4.0/acm/acm.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operators.open-cluster-management.io/v1beta1
apiVersion: operator.open-cluster-management.io/v1
kind: MultiClusterHub
metadata:
name: multiclusterhub
Expand Down
2 changes: 1 addition & 1 deletion misc4.0/acm/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kind: Subscription
metadata:
name: advanced-cluster-management
spec:
channel: release-1.0
channel: release-2.0
installPlanApproval: Automatic
name: advanced-cluster-management
source: redhat-operators
Expand Down
2 changes: 0 additions & 2 deletions misc4.0/acm/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ oc new-project open-cluster-management
oc apply -f operator.yaml -n open-cluster-management
oc create secret docker-registry acm-pull-secret --docker-server=registry.access.redhat.com/rhacm1-tech-preview --docker-username=<docker_username> --docker-password=<docker_password> -n open-cluster-management
oc apply -f acm.yaml -n open-cluster-management
#run this to work around: https://bugzilla.redhat.com/show_bug.cgi?id=1847540
oc annotate etcdcluster etcd-cluster etcd.database.coreos.com/scope=clusterwide -n open-cluster-management
```

## Create three clusters
Expand Down
10 changes: 10 additions & 0 deletions misc4.0/aws-nlb/ingress-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
name: nlb
namespace: openshift-ingress-operator
spec:
replicas: 2
domain: nlb.control-cluster-raffa.demo.red-chesterfield.com
endpointPublishingStrategy:
type: "Private"
30 changes: 30 additions & 0 deletions misc4.0/aws-nlb/nlb-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
kind: Service
apiVersion: v1
metadata:
annotations:
# service.beta.kubernetes.io/aws-load-balancer-healthcheck-healthy-threshold: '2'
# service.beta.kubernetes.io/aws-load-balancer-healthcheck-interval: '5'
# service.beta.kubernetes.io/aws-load-balancer-healthcheck-timeout: '4'
# service.beta.kubernetes.io/aws-load-balancer-healthcheck-unhealthy-threshold: '2'
# service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*'
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
name: router-nlb
namespace: openshift-ingress
labels:
app: router
ingresscontroller.operator.openshift.io/owning-ingresscontroller: nlb
router: router-nlb
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: http
- name: https
protocol: TCP
port: 443
targetPort: https
selector:
ingresscontroller.operator.openshift.io/deployment-ingresscontroller: nlb
type: LoadBalancer
externalTrafficPolicy: Local
4 changes: 4 additions & 0 deletions misc4.0/serverless/knative-eventing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
4 changes: 4 additions & 0 deletions misc4.0/serverless/knative-serving.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeServing
metadata:
name: knative-serving
11 changes: 11 additions & 0 deletions misc4.0/serverless/operators.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: "serverless-operator"
namespace: "openshift-operators"
spec:
channel: '4.5'
installPlanApproval: Automatic
name: serverless-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
16 changes: 16 additions & 0 deletions misc4.0/serverless/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Serverless Operator

## Install the Operator

```shell
oc apply -f operators.yaml
```

## Install knative serving and eventing

```shell
oc new-project knative-serving
oc apply -f knative-serving.yaml -n knative-serving
oc new-project knative-eventing
oc apply -f knative-eventing.yaml -n knative-eventing
```
12 changes: 6 additions & 6 deletions misc4.0/vault/kms-values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ server:
- envName: AWS_ACCESS_KEY_ID
secretName: vault-aws-kms-credentials
secretKey: aws_access_key_id
image:
tag: "1.4.2"
# image:
# tag: "1.4.2"
extraVolumes:
- type: 'secret'
name: 'vault-tls'
Expand Down Expand Up @@ -76,10 +76,10 @@ server:
component: server
topologyKey: failure-domain.beta.kubernetes.io/zone
injector:
image:
tag: "0.4.0"
agentImage:
tag: "1.4.2"
# image:
# tag: "0.4.0"
# agentImage:
# tag: "1.4.2"
extraEnvironmentVars:
AGENT_INJECT_SET_SECURITY_CONTEXT: "false"

0 comments on commit e89cda4

Please sign in to comment.