Created
December 18, 2019 22:19
-
-
Save nvpnathan/4e63108c65f570eb070d29434329331f to your computer and use it in GitHub Desktop.
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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
run: ipam-web | |
name: ipam-web | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: ipam-web | |
template: | |
metadata: | |
labels: | |
run: ipam-web | |
spec: | |
containers: | |
- image: harbor.vballin.com/phpipam/phpipam-www:latest | |
name: ipam-web | |
ports: | |
- containerPort: 80 | |
env: | |
- name: "IPAM_DATABASE_HOST" | |
value: "mariadb" | |
- name: "IPAM_DATABASE_USER" | |
value: "root" | |
- name: "IPAM_DATABASE_PASS" | |
value: "password" | |
- name: "IPAM_DATABASE_NAME" | |
value: "ipam" | |
volumeMounts: | |
- name: phpipam-logo | |
mountPath: /phpipam/css/images/logo | |
imagePullSecrets: | |
- name: regcred | |
volumes: | |
- name: phpipam-logo | |
emptyDir: {} | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: ipam-web | |
spec: | |
selector: | |
run: ipam-web | |
ports: | |
- protocol: TCP | |
port: 80 | |
targetPort: 80 | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment