imfreedom/k8s-cluster
Clone
Summary
Browse
Changes
Graph
Add a service account so we can reach the k8s dashboard
2019-05-09, Gary Kramlich
5669b461ec0d
Add a service account so we can reach the k8s dashboard
apiVersion
:
v1
kind
:
Service
metadata
:
namespace
:
imfreedom
labels
:
app
:
ldap
name
:
ldap
spec
:
ports
:
-
port
:
3389
protocol
:
TCP
selector
:
app
:
ldap
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
namespace
:
imfreedom
name
:
ldap
labels
:
app
:
ldap
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
ldap
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
app
:
ldap
spec
:
containers
:
-
name
:
ldap
env
:
-
name
:
DOMAIN
value
:
imfreedom.org
-
name
:
ORGANIZATION
value
:
Instant Messaging Freedom, Inc
-
name
:
ADMIN_PASSWD
valueFrom
:
secretKeyRef
:
name
:
ldap
key
:
adminPasswd
image
:
rwgrim/ldap:latest
imagePullPolicy
:
Always
readinessProbe
:
tcpSocket
:
port
:
3389
periodSeconds
:
10
initialDelaySeconds
:
1
livenessProbe
:
tcpSocket
:
port
:
3389
periodSeconds
:
30
initialDelaySeconds
:
30
ports
:
-
containerPort
:
3389
volumeMounts
:
-
mountPath
:
/var/lib/ldap
name
:
data
readOnly
:
false
resources
:
limits
:
cpu
:
400m
memory
:
1024Mi
requests
:
cpu
:
200m
memory
:
512Mi
securityContext
:
fsGroup
:
101
runAsUser
:
101
volumes
:
-
name
:
data
persistentVolumeClaim
:
claimName
:
ldap-data
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
namespace
:
imfreedom
name
:
ldap-data
labels
:
app
:
ldap
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Gi
---