Fix copy mistake
This commit is contained in:
parent
b59327939e
commit
4b1d859778
@ -1,72 +1,50 @@
|
|||||||
apiVersion: v1
|
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
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: tweetsvg
|
name: opengraph
|
||||||
namespace: tweetsvg
|
namespace: opengraph
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8080
|
targetPort: web
|
||||||
name: web
|
name: web
|
||||||
selector:
|
selector:
|
||||||
app: tweetsvg
|
app: opengraph
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: tweetsvg
|
name: opengraph
|
||||||
namespace: tweetsvg
|
namespace: opengraph
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: tweetsvg
|
app: opengraph
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: tweetsvg
|
app: opengraph
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: docker.cluster.fun/averagemarcus/tweetsvg:latest
|
image: docker.cluster.fun/averagemarcus/opengraph:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
# env:
|
|
||||||
# - name: DOTENV_DIR
|
|
||||||
# value: /config/
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 3000
|
||||||
name: web
|
name: web
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
requests:
|
requests:
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
volumeMounts:
|
|
||||||
- name: dotenv
|
|
||||||
mountPath: /app/.env
|
|
||||||
subPath: .env
|
|
||||||
volumes:
|
|
||||||
- name: dotenv
|
|
||||||
secret:
|
|
||||||
secretName: tweetsvg
|
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: tweetsvg
|
name: opengraph
|
||||||
namespace: tweetsvg
|
namespace: opengraph
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
@ -75,17 +53,17 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- tweet.cluster.fun
|
- opengraph.cluster.fun
|
||||||
secretName: tweetsvg-ingress
|
secretName: opengraph-ingress
|
||||||
rules:
|
rules:
|
||||||
- host: tweet.cluster.fun
|
- host: opengraph.cluster.fun
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: tweetsvg
|
name: opengraph
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
|
||||||
|
@ -1,50 +1,72 @@
|
|||||||
apiVersion: v1
|
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
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: opengraph
|
name: tweetsvg
|
||||||
namespace: opengraph
|
namespace: tweetsvg
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: web
|
targetPort: 8080
|
||||||
name: web
|
name: web
|
||||||
selector:
|
selector:
|
||||||
app: opengraph
|
app: tweetsvg
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: opengraph
|
name: tweetsvg
|
||||||
namespace: opengraph
|
namespace: tweetsvg
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: opengraph
|
app: tweetsvg
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: opengraph
|
app: tweetsvg
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: docker.cluster.fun/averagemarcus/opengraph:latest
|
image: docker.cluster.fun/averagemarcus/tweetsvg:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
# env:
|
||||||
|
# - name: DOTENV_DIR
|
||||||
|
# value: /config/
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 8080
|
||||||
name: web
|
name: web
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
requests:
|
requests:
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
volumeMounts:
|
||||||
|
- name: dotenv
|
||||||
|
mountPath: /app/.env
|
||||||
|
subPath: .env
|
||||||
|
volumes:
|
||||||
|
- name: dotenv
|
||||||
|
secret:
|
||||||
|
secretName: tweetsvg
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: opengraph
|
name: tweetsvg
|
||||||
namespace: opengraph
|
namespace: tweetsvg
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
@ -53,17 +75,17 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- opengraph.cluster.fun
|
- tweet.cluster.fun
|
||||||
secretName: opengraph-ingress
|
secretName: tweetsvg-ingress
|
||||||
rules:
|
rules:
|
||||||
- host: opengraph.cluster.fun
|
- host: tweet.cluster.fun
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: opengraph
|
name: tweetsvg
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user