Fix copy mistake

This commit is contained in:
Marcus Noble 2021-05-11 05:43:42 +01:00
parent b59327939e
commit 4b1d859778
2 changed files with 54 additions and 54 deletions

View File

@ -1,72 +1,50 @@
apiVersion: v1
kind: Secret
metadata:
name: tweetsvg
namespace: tweetsvg
annotations:
kube-1password: dmjtjxrcpqtmeddq5x7zikj37i
kube-1password/vault: Kubernetes
kube-1password/secret-text-key: .env
type: Opaque
---
apiVersion: v1
kind: Service
metadata:
name: tweetsvg
namespace: tweetsvg
name: opengraph
namespace: opengraph
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
targetPort: web
name: web
selector:
app: tweetsvg
app: opengraph
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tweetsvg
namespace: tweetsvg
name: opengraph
namespace: opengraph
spec:
replicas: 2
selector:
matchLabels:
app: tweetsvg
app: opengraph
template:
metadata:
labels:
app: tweetsvg
app: opengraph
spec:
containers:
- name: web
image: docker.cluster.fun/averagemarcus/tweetsvg:latest
image: docker.cluster.fun/averagemarcus/opengraph:latest
imagePullPolicy: Always
# env:
# - name: DOTENV_DIR
# value: /config/
ports:
- containerPort: 8080
- containerPort: 3000
name: web
resources:
limits:
memory: 100Mi
requests:
memory: 100Mi
volumeMounts:
- name: dotenv
mountPath: /app/.env
subPath: .env
volumes:
- name: dotenv
secret:
secretName: tweetsvg
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tweetsvg
namespace: tweetsvg
name: opengraph
namespace: opengraph
annotations:
cert-manager.io/cluster-issuer: letsencrypt
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
@ -75,17 +53,17 @@ metadata:
spec:
tls:
- hosts:
- tweet.cluster.fun
secretName: tweetsvg-ingress
- opengraph.cluster.fun
secretName: opengraph-ingress
rules:
- host: tweet.cluster.fun
- host: opengraph.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: tweetsvg
name: opengraph
port:
number: 80

View File

@ -1,50 +1,72 @@
apiVersion: v1
kind: Secret
metadata:
name: tweetsvg
namespace: tweetsvg
annotations:
kube-1password: dmjtjxrcpqtmeddq5x7zikj37i
kube-1password/vault: Kubernetes
kube-1password/secret-text-key: .env
type: Opaque
---
apiVersion: v1
kind: Service
metadata:
name: opengraph
namespace: opengraph
name: tweetsvg
namespace: tweetsvg
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
targetPort: 8080
name: web
selector:
app: opengraph
app: tweetsvg
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: opengraph
namespace: opengraph
name: tweetsvg
namespace: tweetsvg
spec:
replicas: 2
selector:
matchLabels:
app: opengraph
app: tweetsvg
template:
metadata:
labels:
app: opengraph
app: tweetsvg
spec:
containers:
- name: web
image: docker.cluster.fun/averagemarcus/opengraph:latest
image: docker.cluster.fun/averagemarcus/tweetsvg:latest
imagePullPolicy: Always
# env:
# - name: DOTENV_DIR
# value: /config/
ports:
- containerPort: 3000
- containerPort: 8080
name: web
resources:
limits:
memory: 100Mi
requests:
memory: 100Mi
volumeMounts:
- name: dotenv
mountPath: /app/.env
subPath: .env
volumes:
- name: dotenv
secret:
secretName: tweetsvg
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: opengraph
namespace: opengraph
name: tweetsvg
namespace: tweetsvg
annotations:
cert-manager.io/cluster-issuer: letsencrypt
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
@ -53,17 +75,17 @@ metadata:
spec:
tls:
- hosts:
- opengraph.cluster.fun
secretName: opengraph-ingress
- tweet.cluster.fun
secretName: tweetsvg-ingress
rules:
- host: opengraph.cluster.fun
- host: tweet.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: opengraph
name: tweetsvg
port:
number: 80