--- apiVersion: apps/v1 kind: Deployment metadata: labels: name: apache-only-http name: apache-only-http spec: progressDeadlineSeconds: 600 replicas: 4 revisionHistoryLimit: 2 selector: matchLabels: app: apache-only-http strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: apache-only-http spec: containers: - image: raghulc/apache-multiport-http:1.0.0 imagePullPolicy: IfNotPresent name: apache-only-http ports: - containerPort: 80 protocol: TCP - containerPort: 5080 protocol: TCP - containerPort: 5081 protocol: TCP - containerPort: 5082 protocol: TCP --- apiVersion: apps/v1 kind: Deployment metadata: labels: name: apache-only-ssl name: apache-only-ssl spec: progressDeadlineSeconds: 600 replicas: 4 revisionHistoryLimit: 2 selector: matchLabels: app: apache-only-ssl strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: apache-only-ssl spec: containers: - image: raghulc/apache-multiport-ssl:1.0.0 imagePullPolicy: IfNotPresent name: apache-only-ssl ports: - containerPort: 443 protocol: TCP - containerPort: 5443 protocol: TCP - containerPort: 5444 protocol: TCP - containerPort: 5445 protocol: TCP --- apiVersion: v1 kind: Service metadata: name: svc-apache-multi-http spec: ports: - name: apache-http-6080 port: 6080 targetPort: 5080 - name: apache-http-6081 port: 6081 targetPort: 5081 - name: apache-http-6082 port: 6082 targetPort: 5082 selector: app: apache-only-http --- apiVersion: v1 kind: Service metadata: name: svc-apache-multi-ssl spec: ports: - name: apache-ssl-6443 port: 6443 targetPort: 5443 - name: apache-ssl-6444 port: 6444 targetPort: 5444 - name: apache-ssl-6445 port: 6445 targetPort: 5445 selector: app: apache-only-ssl ---