Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
oidc-k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2915bdab
authored
May 15, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service nodeport固定
1 parent
9db570e1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
32 deletions
keycloak/deployment.yaml
keycloak/keycloak-secrets.yaml
keycloak/namespace.yaml
keycloak/keycloak-service.yaml → keycloak/service.yaml
postgres/postgres-deployment.yaml → postgres/deployment.yaml
postgres/postgres-data-persistentvolumeclaim.yaml
postgres/postgres-pv-pvc/pv-pvc.yaml → postgres/pv-pvc.yaml
postgres/postgres-service.yaml → postgres/service.yaml
start-postgres.sh
keycloak/deployment.yaml
View file @
2915bda
...
...
@@ -9,6 +9,7 @@ metadata:
labels
:
io.kompose.service
:
keycloak
name
:
keycloak
namespace
:
keycloak
spec
:
replicas
:
1
strategy
:
{}
...
...
@@ -26,13 +27,13 @@ spec:
-
name
:
DB_DATABASE
value
:
"
keycloak"
-
name
:
DB_PASSWORD
value
:
password
value
:
seetatech
-
name
:
DB_USER
value
:
keycloak
-
name
:
DB_VENDOR
value
:
POSTGRES
-
name
:
KEYCLOAK_PASSWORD
value
:
Pa55w0rd
value
:
seetatech
-
name
:
KEYCLOAK_USER
value
:
admin
image
:
jboss/keycloak
...
...
keycloak/keycloak-secrets.yaml
deleted
100644 → 0
View file @
9db570e
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
secretName
data
:
secretKey
:
BASE64_ENCODED_VALUE
type
:
Opaque
\ No newline at end of file
keycloak/namespace.yaml
deleted
100644 → 0
View file @
9db570e
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
keycloak-demo
\ No newline at end of file
keycloak/
keycloak-
service.yaml
→
keycloak/service.yaml
View file @
2915bda
...
...
@@ -9,9 +9,11 @@ metadata:
labels
:
io.kompose.service
:
keycloak
name
:
keycloak
namespace
:
keycloak
spec
:
ports
:
-
port
:
8080
nodePort
:
40852
selector
:
io.kompose.service
:
keycloak
type
:
NodePort
postgres/
postgres-
deployment.yaml
→
postgres/deployment.yaml
View file @
2915bda
...
...
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
postgres
namespace
:
keycloak
annotations
:
kompose.cmd
:
C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe
convert --file=docker-compose.yml
...
...
@@ -25,7 +26,7 @@ spec:
-
name
:
POSTGRES_DB
value
:
keycloak
-
name
:
POSTGRES_PASSWORD
value
:
password
value
:
seetatech
-
name
:
POSTGRES_USER
value
:
keycloak
-
name
:
PGDATA
...
...
postgres/postgres-data-persistentvolumeclaim.yaml
deleted
100644 → 0
View file @
9db570e
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
creationTimestamp
:
null
labels
:
io.kompose.service
:
postgres-data
name
:
postgres-data-pvc
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
100Mi
status
:
{}
postgres/p
ostgres-pv-pvc/p
v-pvc.yaml
→
postgres/pv-pvc.yaml
View file @
2915bda
...
...
@@ -18,7 +18,7 @@ kind: PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
postgres-pvc
namespace
:
default
namespace
:
keycloak
spec
:
accessModes
:
-
ReadWriteOnce
...
...
postgres/
postgres-
service.yaml
→
postgres/service.yaml
View file @
2915bda
...
...
@@ -9,6 +9,7 @@ metadata:
labels
:
io.kompose.service
:
postgres
name
:
postgres-keycloak
namespace
:
keycloak
spec
:
ports
:
-
name
:
"
5432"
...
...
start-postgres.sh
View file @
2915bda
#!/bin/bash
kubectl apply -f postgres/deployment.yaml -f postgres/service.yaml
kubectl apply -f postgres/deployment.yaml
kubectl apply -f postgres/service.yaml
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment