2020-09-10 02:06:39 +00:00
|
|
|
#! Copyright 2020 VMware, Inc.
|
|
|
|
#! SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
#@ load("@ytt:data", "data")
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
labels:
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator-service-account
|
|
|
|
namespace: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator
|
|
|
|
namespace: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
labels:
|
2020-09-10 22:20:02 +00:00
|
|
|
app: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2020-09-10 22:20:02 +00:00
|
|
|
app: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2020-09-10 22:20:02 +00:00
|
|
|
app: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
spec:
|
2020-09-10 22:20:02 +00:00
|
|
|
serviceAccountName: local-user-authenticator-service-account
|
2020-09-10 02:06:39 +00:00
|
|
|
containers:
|
2020-09-10 22:20:02 +00:00
|
|
|
- name: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
#@ if data.values.image_digest:
|
|
|
|
image: #@ data.values.image_repo + "@" + data.values.image_digest
|
|
|
|
#@ else:
|
|
|
|
image: #@ data.values.image_repo + ":" + data.values.image_tag
|
|
|
|
#@ end
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
command: #! override the default entrypoint
|
2020-09-10 22:20:02 +00:00
|
|
|
- /usr/local/bin/local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator
|
|
|
|
namespace: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
labels:
|
2020-09-10 22:20:02 +00:00
|
|
|
app: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
selector:
|
2020-09-10 22:20:02 +00:00
|
|
|
app: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 443
|
|
|
|
targetPort: 443
|