aboutsummaryrefslogtreecommitdiff
path: root/yamls
diff options
context:
space:
mode:
Diffstat (limited to 'yamls')
-rw-r--r--yamls/configmap.yaml7
-rw-r--r--yamls/deployment.yaml6
2 files changed, 13 insertions, 0 deletions
diff --git a/yamls/configmap.yaml b/yamls/configmap.yaml
new file mode 100644
index 0000000..fea41a5
--- /dev/null
+++ b/yamls/configmap.yaml
@@ -0,0 +1,7 @@
+apiVersion: v1
+kind: ConfigMap
+data:
+ ports.conf: |
+ Listen 8080
+metadata:
+ name: i2-ports \ No newline at end of file
diff --git a/yamls/deployment.yaml b/yamls/deployment.yaml
index 53a9309..e87429e 100644
--- a/yamls/deployment.yaml
+++ b/yamls/deployment.yaml
@@ -20,6 +20,9 @@ spec:
- name: i2-pod-storage
persistentVolumeClaim:
claimName: i2-storage
+ - name: i2-ports
+ configMap:
+ name: i2-ports
containers:
- image: akiyamn/i2
name: i2
@@ -29,4 +32,7 @@ spec:
volumeMounts:
- mountPath: "/var/www/html"
name: i2-pod-storage
+ - mountPath: "/etc/apache2/ports.conf"
+ name: i2-ports
+ subPath: ports.conf
status: {} \ No newline at end of file