Created
October 22, 2021 09:24
-
-
Save mcornea/200071acee209ae4c67956721958cce1 to your computer and use it in GitHub Desktop.
test_du_deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: testns | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: index-html-configmap | |
namespace: testns | |
data: | |
index.html: | | |
<html> | |
<h1>Welcome</h1> | |
</br> | |
<h1>Hi! This is a configmap Index file </h1> | |
</html | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: hello-world | |
namespace: testns | |
spec: | |
replicas: 15 | |
selector: | |
matchLabels: | |
app: hello-world | |
template: | |
metadata: | |
labels: | |
app: hello-world | |
annotations: | |
k8s.v1.cni.cncf.io/networks: '[{"name": "sriov-nw-du-extra", "namespace": "testns" }]' | |
spec: | |
containers: | |
- env: | |
- name: service_name | |
value: hello-world | |
image: registry.kni-qe-0.lab.eng.rdu2.redhat.com:5000/rhscl/httpd-24-rhel7:latest | |
imagePullPolicy: Always | |
name: hello-world | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
resources: | |
limits: | |
cpu: "2" | |
memory: 100M | |
requests: | |
cpu: "2" | |
memory: 100M | |
volumeMounts: | |
- name: html-index-file | |
mountPath: /var/www/html/ | |
volumes: | |
- name: html-index-file | |
configMap: | |
name: index-html-configmap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment