Skip to content

Commit

Permalink
yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
lake-of-dreams committed Sep 11, 2017
1 parent 7713993 commit 8a3f5fb
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 0 deletions.
54 changes: 54 additions & 0 deletions database-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: database
namespace: default
labels:
app: database
version: 12.1.0.2
spec:
replicas: 1
selector:
matchLabels:
app: database
version: 12.1.0.2
template:
metadata:
name: database
labels:
app: database
version: 12.1.0.2
spec:
volumes:
- name: dshm
emptyDir:
medium: Memory
containers:
- name: database
command:
- /home/oracle/setup/dockerInit.sh
image: quay.io/ravi_r_singhal/database:12.1.0.2
resources:
requests:
memory: 10Gi
ports:
- containerPort: 1521
hostPort: 1521
volumeMounts:
- mountPath: /dev/shm
name: dshm
env:
- name: DB_SID
value: OraDoc
- name: DB_PDB
value: OraPdb
- name: DB_PASSWD
value: Welcome1
- name: DB_DOMAIN
value: my.domain.com
- name: DB_BUNDLE
value: basic
- name: DB_MEMORY
value: 8g
imagePullSecrets:
- name: regsecret
12 changes: 12 additions & 0 deletions database-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: database
spec:
selector:
app: database
version: 12.1.0.2
ports:
- protocol: TCP
port: 1521
targetPort: 1521
29 changes: 29 additions & 0 deletions weblogic-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: weblogic
labels:
app: weblogic
spec:
containers:
spec:
replicas: 1
selector:
matchLabels:
app: weblogic
template:
metadata:
name: weblogic
labels:
app: weblogic
spec:
containers:
- name: weblogic
command:
- /u01/oracle/entrypoint.sh
image: quay.io/ravi_r_singhal/weblogic:oow
ports:
- containerPort: 7001
hostPort: 7001
imagePullSecrets:
- name: quaysecret
11 changes: 11 additions & 0 deletions weblogic-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: weblogic
spec:
selector:
app: weblogic
ports:
- protocol: TCP
port: 7001
targetPort: 7001

0 comments on commit 8a3f5fb

Please sign in to comment.