Skip to content

Commit 6dc3685

Browse files
Deployment script and documentation for IDM 22.2.1 release (#105)
1 parent 204363b commit 6dc3685

File tree

133 files changed

+9336
-6539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+9336
-6539
lines changed

OracleAccessManagement/kubernetes/create-access-domain/domain-home-on-pv/common/oamconfig_modify.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Copyright (c) 2020, Oracle Corporation and/or its affiliates.
3+
# Copyright (c) 2020, 2022, Oracle and/or its affiliates.
44
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55

66
cur_dir=`dirname $(readlink -f "$0")`
@@ -61,7 +61,7 @@ if [ $ING_TYPE == "NodePort" ]; then
6161
exit 1
6262
fi
6363
elif [ $ING_TYPE == "LoadBalancer" ]; then
64-
LBR_PORT = $SSL_PORT
64+
LBR_PORT=$SSL_PORT
6565
else
6666
echo "Error: Invalid INGRESS TYPE : $ING_TYPE"
6767
exit 1

OracleAccessManagement/kubernetes/elasticsearch-and-kibana/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ To control Elasticsearch memory parameters (Heap allocation and Enabling/Disabli
1919

2020
* ES_JAVA_OPTS: value may contain for example -Xms512m -Xmx512m to lower the default memory usage (please be aware that this value is only applicable for demo purpose and it is not the one recommended by Elasticsearch itself)
2121
* bootstrap.memory_lock: value may contain true (enables the usage of mlockall to try to lock the process address space into RAM, preventing any Elasticsearch memory from being swapped out) or false (disables the usage of mlockall to try to lock the process address space into RAM, preventing any Elasticsearch memory from being swapped out).
22+
* imagePullSecrets: It has been added to resolve the issue with Docker Hub Rate Limiting. One needs to create a secret using your docker hub credentials to work around the error and
23+
replace the value `dockercred`.
2224

2325
To install Elasticsearch and Kibana, use:
2426
```shell
25-
$ kubectl apply -f kubernetes/samples/scripts/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
27+
$ kubectl apply -f kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
2628
```
2729

2830
To remove them, use:
2931
```shell
30-
$ kubectl delete -f kubernetes/samples/scripts/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
32+
$ kubectl delete -f kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
3133
```

OracleAccessManagement/kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, 2021, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
# When a user installs the WebLogic operator Helm chart, the user can set
@@ -18,16 +18,16 @@
1818
# values.yaml file.
1919
#
2020
# To configure them, use:
21-
# kubectl apply -f kubernetes/samples/scripts/elasticsearch_and_kibana.yaml
21+
# kubectl apply -f kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
2222
#
2323
# To remove them, use:
24-
# kubectl delete -f kubernetes/samples/scripts/elasticsearch_and_kibana.yaml
24+
# kubectl delete -f kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
2525

2626
---
2727
apiVersion: apps/v1
2828
kind: Deployment
2929
metadata:
30-
namespace: "default"
30+
namespace: "oamns"
3131
name: "elasticsearch"
3232
labels:
3333
app: "elasticsearch"
@@ -41,6 +41,8 @@ spec:
4141
labels:
4242
app: "elasticsearch"
4343
spec:
44+
imagePullSecrets:
45+
- name: dockercred
4446
initContainers:
4547
- name: set-vm-max-map-count
4648
image: busybox
@@ -50,6 +52,9 @@ spec:
5052
privileged: true
5153
containers:
5254
- name: "elasticsearch"
55+
securityContext:
56+
capabilities:
57+
add: ["SYS_CHROOT"]
5358
image: "elasticsearch:6.8.0"
5459
ports:
5560
- containerPort: 9200
@@ -62,7 +67,7 @@ spec:
6267
kind: "Service"
6368
apiVersion: "v1"
6469
metadata:
65-
namespace: "default"
70+
namespace: "oamns"
6671
name: "elasticsearch"
6772
spec:
6873
ports:
@@ -81,7 +86,7 @@ spec:
8186
apiVersion: "apps/v1"
8287
kind: "Deployment"
8388
metadata:
84-
namespace: "default"
89+
namespace: "oamns"
8590
name: "kibana"
8691
labels:
8792
app: "kibana"
@@ -100,12 +105,14 @@ spec:
100105
image: "kibana:6.8.0"
101106
ports:
102107
- containerPort: 5601
108+
imagePullSecrets:
109+
- name: dockercred
103110

104111
---
105112
apiVersion: "v1"
106113
kind: "Service"
107114
metadata:
108-
namespace: "default"
115+
namespace: "oamns"
109116
name: "kibana"
110117
labels:
111118
app: "kibana"

OracleIdentityGovernance/kubernetes/charts/ingress-per-domain/templates/nginx-ingress-k8s1.19.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020, 2021, Oracle and/or its affiliates.
1+
# Copyright (c) 2020, 2022, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33
#
44
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
@@ -14,6 +14,10 @@ metadata:
1414
nginx.ingress.kubernetes.io/affinity: 'cookie'
1515
nginx.ingress.kubernetes.io/enable-access-log: 'false'
1616
kubernetes.io/ingress.class: 'nginx'
17+
{{- if (.Values.nginxTimeOut) }}
18+
nginx.ingress.kubernetes.io/proxy-read-timeout: '{{ .Values.nginxTimeOut }}'
19+
nginx.ingress.kubernetes.io/proxy-send-timeout: '{{ .Values.nginxTimeOut }}'
20+
{{- end }}
1721
{{- if eq .Values.sslType "SSL" }}
1822
nginx.ingress.kubernetes.io/proxy-buffer-size: '2000k'
1923
nginx.ingress.kubernetes.io/configuration-snippet: |

OracleIdentityGovernance/kubernetes/charts/ingress-per-domain/templates/nginx-ingress.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020, 2021, Oracle and/or its affiliates.
1+
# Copyright (c) 2020, 2022, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33
#
44
{{- if semverCompare "<1.19-0" .Capabilities.KubeVersion.GitVersion -}}
@@ -14,6 +14,10 @@ metadata:
1414
nginx.ingress.kubernetes.io/affinity: 'cookie'
1515
nginx.ingress.kubernetes.io/enable-access-log: 'false'
1616
kubernetes.io/ingress.class: 'nginx'
17+
{{- if (.Values.nginxTimeOut) }}
18+
nginx.ingress.kubernetes.io/proxy-read-timeout: '{{ .Values.nginxTimeOut }}'
19+
nginx.ingress.kubernetes.io/proxy-send-timeout: '{{ .Values.nginxTimeOut }}'
20+
{{- end }}
1721
{{- if eq .Values.sslType "SSL" }}
1822
nginx.ingress.kubernetes.io/proxy-buffer-size: '2000k'
1923
nginx.ingress.kubernetes.io/configuration-snippet: |

OracleIdentityGovernance/kubernetes/charts/ingress-per-domain/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020, 2021, Oracle and/or its affiliates.
1+
# Copyright (c) 2020, 2022, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33
#
44
#
@@ -8,7 +8,8 @@
88
#
99
# Load balancer type. Supported values are: TRAEFIK, NGINX
1010
type: NGINX
11-
11+
# TimeOut value to be set for nginx parameters proxy-read-timeout and proxy-send-timeout
12+
nginxTimeOut: 180
1213
# Type of Configuration Supported Values are : NONSSL, SSL
1314
sslType: SSL
1415

OracleIdentityGovernance/kubernetes/create-oim-domain/domain-home-on-pv/common/createFMWDomain.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020, Oracle Corporation and/or its affiliates.
1+
# Copyright (c) 2020, 2022, Oracle Corporation and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
import os
@@ -556,10 +556,10 @@ def usage():
556556
'-t3ChannelPort <t3 channel port> '
557557
sys.exit(0)
558558

559-
560-
print str(sys.argv[0]) + " called with the following sys.argv array:"
561-
for index, arg in enumerate(sys.argv):
562-
print "sys.argv[" + str(index) + "] = " + str(sys.argv[index])
559+
# Uncomment for Debug only
560+
#print str(sys.argv[0]) + " called with the following sys.argv array:"
561+
#for index, arg in enumerate(sys.argv):
562+
# print "sys.argv[" + str(index) + "] = " + str(sys.argv[index])
563563

564564
if len(sys.argv) < 17:
565565
usage()

OracleIdentityGovernance/kubernetes/elasticsearch-and-kibana/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ To control Elasticsearch memory parameters (Heap allocation and Enabling/Disabli
1919

2020
* ES_JAVA_OPTS: value may contain for example -Xms512m -Xmx512m to lower the default memory usage (please be aware that this value is only applicable for demo purpose and it is not the one recommended by Elasticsearch itself)
2121
* bootstrap.memory_lock: value may contain true (enables the usage of mlockall to try to lock the process address space into RAM, preventing any Elasticsearch memory from being swapped out) or false (disables the usage of mlockall to try to lock the process address space into RAM, preventing any Elasticsearch memory from being swapped out).
22-
22+
* imagePullSecrets: It has been added to resolve the issue with Docker Hub Rate Limiting. One needs to create a secret using your docker hub credentials to work around the error and replace the value dockercred.
2323
To install Elasticsearch and Kibana, use:
2424
```shell
25-
$ kubectl apply -f kubernetes/samples/scripts/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
25+
$ kubectl apply -f kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
2626
```
2727

2828
To remove them, use:
2929
```shell
30-
$ kubectl delete -f kubernetes/samples/scripts/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
30+
$ kubectl delete -f kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
3131
```

OracleIdentityGovernance/kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, 2021, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
# When a user installs the WebLogic operator Helm chart, the user can set
@@ -18,16 +18,16 @@
1818
# values.yaml file.
1919
#
2020
# To configure them, use:
21-
# kubectl apply -f kubernetes/samples/scripts/elasticsearch_and_kibana.yaml
21+
# kubectl apply -f kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
2222
#
2323
# To remove them, use:
24-
# kubectl delete -f kubernetes/samples/scripts/elasticsearch_and_kibana.yaml
24+
# kubectl delete -f kubernetes/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml
2525

2626
---
2727
apiVersion: apps/v1
2828
kind: Deployment
2929
metadata:
30-
namespace: "default"
30+
namespace: "oigns"
3131
name: "elasticsearch"
3232
labels:
3333
app: "elasticsearch"
@@ -41,6 +41,8 @@ spec:
4141
labels:
4242
app: "elasticsearch"
4343
spec:
44+
imagePullSecrets:
45+
- name: dockercred
4446
initContainers:
4547
- name: set-vm-max-map-count
4648
image: busybox
@@ -50,6 +52,9 @@ spec:
5052
privileged: true
5153
containers:
5254
- name: "elasticsearch"
55+
securityContext:
56+
capabilities:
57+
add: ["SYS_CHROOT"]
5358
image: "elasticsearch:6.8.0"
5459
ports:
5560
- containerPort: 9200
@@ -62,7 +67,7 @@ spec:
6267
kind: "Service"
6368
apiVersion: "v1"
6469
metadata:
65-
namespace: "default"
70+
namespace: "oigns"
6671
name: "elasticsearch"
6772
spec:
6873
ports:
@@ -81,7 +86,7 @@ spec:
8186
apiVersion: "apps/v1"
8287
kind: "Deployment"
8388
metadata:
84-
namespace: "default"
89+
namespace: "oigns"
8590
name: "kibana"
8691
labels:
8792
app: "kibana"
@@ -100,12 +105,14 @@ spec:
100105
image: "kibana:6.8.0"
101106
ports:
102107
- containerPort: 5601
108+
imagePullSecrets:
109+
- name: dockercred
103110

104111
---
105112
apiVersion: "v1"
106113
kind: "Service"
107114
metadata:
108-
namespace: "default"
115+
namespace: "oigns"
109116
name: "kibana"
110117
labels:
111118
app: "kibana"

OracleUnifiedDirectory/kubernetes/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,11 @@ Oracle Unified Directory Docker Image has been tested and is known to run on fol
3333

3434
| | Version | Command to verify version |
3535
| :---: | :----------------------------: | :-----------------------: |
36-
| OS | Oracle Linux 7.3 or higher | more /etc/oracle-release |
3736
| Docker| Docker version 18.03 or higher | docker version |
3837
| K8s | Kubernetes version 1.16.0+ | kubectl version
3938

4039
# Prerequisites
4140

42-
## Verify OS Version
43-
OS version should be Oracle Linux 7.3 or higher. To check this, issue the following command:
44-
45-
# more /etc/oracle-release
46-
Oracle Linux Server release 7.5
47-
4841
## Verify Docker Version and OUD Image
4942
Docker version should be 18.03 or higher. To check this, issue the following command:
5043

0 commit comments

Comments
 (0)