mirror of
https://github.com/Dannecron/netology-devops.git
synced 2025-12-25 23:32:37 +03:00
homework 14.1: complete all tasks
This commit is contained in:
32
src/homework/14-kubernetes-security/14.1/config/test_pod.yml
Normal file
32
src/homework/14-kubernetes-security/14.1/config/test_pod.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
labels:
|
||||
app: test
|
||||
name: test-pod
|
||||
namespace: default
|
||||
spec:
|
||||
containers:
|
||||
- image: praqma/network-multitool:alpine-extra
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: test-container
|
||||
env:
|
||||
- name: SOME_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: test-secret
|
||||
key: user
|
||||
- name: SOME_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: test-secret
|
||||
key: password
|
||||
volumeMounts:
|
||||
- mountPath: "/etc/nginx/ssl"
|
||||
name: "certs"
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: "certs"
|
||||
secret:
|
||||
secretName: domain-cert
|
||||
Reference in New Issue
Block a user