Compare commits
1 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b7dd3cd1f |
@@ -12,7 +12,7 @@ spec:
|
|||||||
data:
|
data:
|
||||||
SECRET: |-
|
SECRET: |-
|
||||||
{{ .secret }}
|
{{ .secret }}
|
||||||
PORT: "30443"
|
PORT: 30443
|
||||||
data:
|
data:
|
||||||
- secretKey: secret
|
- secretKey: secret
|
||||||
sourceRef:
|
sourceRef:
|
||||||
|
|||||||
@@ -6,6 +6,5 @@ resources:
|
|||||||
- ./rbac.yaml
|
- ./rbac.yaml
|
||||||
- ./daemonset.yaml
|
- ./daemonset.yaml
|
||||||
- ./external-secrets.yaml
|
- ./external-secrets.yaml
|
||||||
- ./service.yaml
|
|
||||||
- ./secret-reader.yaml
|
|
||||||
# - ./storage.yaml
|
# - ./storage.yaml
|
||||||
|
# - ./service.yaml
|
||||||
|
|||||||
@@ -1,63 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: secret-reader
|
|
||||||
labels:
|
|
||||||
app: secret-reader
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: secret-reader
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: secret-reader
|
|
||||||
spec:
|
|
||||||
serviceAccountName: mtproxy
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/os: linux
|
|
||||||
containers:
|
|
||||||
- name: secret-reader
|
|
||||||
image: ultradesu/k8s-secrets:0.2.1
|
|
||||||
imagePullPolicy: Always
|
|
||||||
args:
|
|
||||||
- "--secrets"
|
|
||||||
- "mtproxy-links"
|
|
||||||
- "--namespace"
|
|
||||||
- "mtproxy"
|
|
||||||
- "--port"
|
|
||||||
- "3000"
|
|
||||||
ports:
|
|
||||||
- containerPort: 3000
|
|
||||||
name: http
|
|
||||||
env:
|
|
||||||
- name: RUST_LOG
|
|
||||||
value: "info"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "64Mi"
|
|
||||||
cpu: "50m"
|
|
||||||
limits:
|
|
||||||
memory: "128Mi"
|
|
||||||
cpu: "150m"
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 5
|
|
||||||
securityContext:
|
|
||||||
runAsNonRoot: true
|
|
||||||
runAsUser: 1000
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
@@ -2,15 +2,15 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: secret-reader
|
name: mtproxy
|
||||||
labels:
|
|
||||||
app: secret-reader
|
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: LoadBalancer
|
||||||
selector:
|
selector:
|
||||||
app: secret-reader
|
app: mtproxy
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- name: proxy
|
||||||
targetPort: 3000
|
port: 30443
|
||||||
protocol: TCP
|
targetPort: 30443
|
||||||
name: http
|
protocol: TCP
|
||||||
|
nodePort: 30443
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user